package octez-libs
tztest
contains the definition of tztest
: a wrapper for tests cases running in the error monad. It also adds helpers for working with the mock sink.
val tztest :
string ->
Octez_alcotezt.Alcotest.speed_level ->
(unit -> (unit, Tezos_base.TzPervasives.tztrace) result Lwt.t) ->
unit Octez_alcotezt.Alcotest_lwt.test_case
Transform a function running in the error monad into an Alcotest, taking care of failing the test if the function results is an error. Note that the given function must still take care of test assertions, e.g. by using Alcotest.check
.
val tztest_qcheck :
?count:int ->
name:string ->
'a QCheck.arbitrary ->
('b -> ('c, Tezos_base.TzPervasives.tztrace) result Lwt.t) ->
unit Octez_alcotezt.Alcotest_lwt.test_case
val tztest_qcheck2 :
?print:'a QCheck2.Print.t ->
?count:int ->
name:string ->
'a QCheck2.Gen.t ->
('b -> ('c, Tezos_base.TzPervasives.tztrace) result Lwt.t) ->
unit Octez_alcotezt.Alcotest_lwt.test_case
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>