mte/unikernel/duniverse/ocaml-re/lib_test/expect/test_pcre_288.ml

16 lines
283 B
OCaml
Raw Normal View History

2025-11-11 02:07:51 +01:00
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 {|
[] |}]
;;