This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
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 {|
|
||||
[] |}]
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue