Alcotest_extraExtended utilities for Alcotest used in TC39 Test262 tests
module RegExp = Quickjs.RegExpval test : string -> ('a -> Alcotest.return) -> 'a Alcotest.test_caseval regexp_compile : string -> flags:string -> RegExp.tval regexp_no_compile : string -> flags:string -> RegExp.compile_errorval assert_match : RegExp.match_result option -> string array -> unitAssert that a match happened and that all captures participated with the given values. Group 0 is the full match.
val assert_captures : RegExp.match_result option -> string option array -> unitAssert captures including non-participating groups (None).
val assert_no_match : RegExp.match_result option -> unitval assert_match_index : RegExp.match_result option -> int -> unitAssert the UTF-16 index of a match.
val assert_group :
RegExp.match_result option ->
string ->
string option ->
unitAssert the value of a named group (None = absent or non-participating).
val assert_compile_error :
expected:RegExp.compile_error ->
RegExp.compile_error ->
unitval assert_unexpected_end : RegExp.compile_error -> unitval assert_nothing_to_repeat : RegExp.compile_error -> unitval assert_invalid_escape : RegExp.compile_error -> unitval assert_malformed_unicode : RegExp.compile_error -> unitval assert_invalid_flags : RegExp.compile_error -> unitval assert_unknown_error : contains:string -> RegExp.compile_error -> unit