mte/unikernel/duniverse/ocaml-re/lib_test/expect/test_pcre_288.ml
2025-11-11 02:07:51 +01:00

15 lines
283 B
OCaml

open Import
module Pcre = Re_private.Pcre
let whitespace_re = Pcre.regexp "\\s+"
let%expect_test "split1" =
strings (Pcre.split ~rex:whitespace_re "");
[%expect {| [] |}]
;;
let%expect_test "split2" =
strings (Pcre.split ~rex:whitespace_re " ");
[%expect {|
[] |}]
;;