package expect
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Simple implementation of "expect" to help building unitary testing of interactive program
Install
dune-project
Dependency
Authors
Maintainers
Sources
ocaml-expect-0.0.6.tar.gz
sha256=60629fb2498cae0a7434f191ae47055ddd0cf9f02189ae4afe387bd2d2db1825
md5=894a7d6ded68d9d10a18ab7b79a8e961
doc/expect.pcre/ExpectPcre/index.html
Module ExpectPcre
Extend Expect module with Pcre matches.
This module extends Expect.expect to also handle Pcre regular expression. You can use either `Pat or `Rex, which will be passed to Pcre.pmatch.
open Expect
open ExpectPcre
let (), _ =
with_spawn "ls" [| "-alh" |]
(fun t () ->
if expect t [`Pat "\\.", true] false then
prerr_endline "'.' found")
()val expect :
Expect.t ->
?fmatches:(string -> 'a option) list ->
([< Expect.expect_match | `Pat of string | `Rex of Pcre.regexp ] * 'a) list ->
'a ->
'aSee Expect.expect.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>