package expect
Simple implementation of 'expect' to help building unitary testing of interactive program
Install
Dune Dependency
Authors
Maintainers
Sources
expect-0.1.0.tbz
sha256=25465f78cff8ba44e85cafdff053b9a30320269c2bbb851d2b34d855d6464cc1
sha512=4f4567812afb9ef611749b5256550c05b1ec03c3910e9a3336ec4dec54156b4596acb27143c758e1ebd035398412cd21a0b90c7c4559c0ad57e91355d24a273a
doc/expect.str/ExpectStr/index.html
Module ExpectStr
Source
Extend Expect module with Str matches.
This module extends Expect.expect
to also handle Str
regular expression. You can use `Regexp to provide the Str.regexp
.
open Expect
open ExpectStr
let (), _ =
with_spawn "ls" [| "-alh" |]
(fun t () ->
if expect t [`Regexp (Str.regexp "\\."), true] false then
prerr_endline "'.' found")
()
Source
val expect :
Expect.t ->
?fmatches:(string -> 'a option) list ->
([< Expect.expect_match | `Regexp of Str.regexp ] * 'a) list ->
'a ->
'a
See Expect.expect
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>