Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: reproduce #213 #247

Merged
merged 1 commit into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib_test/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(tests
(libraries re fort_unit)
(modules :standard \ test_str)
(names test_easy test_re test_perl test_emacs test_glob test_pcre))
(names test_easy test_re test_perl test_emacs test_glob test_pcre test_posix))

(test
(libraries re fort_unit str)
Expand Down
13 changes: 13 additions & 0 deletions lib_test/test_posix.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
open OUnit

let test_class_space () =
match Re.Posix.compile_pat {|a[[:space:]]b|} with
| exception Re.Posix.Not_supported -> ()
| (_ : Re.re) -> assert false

let suite = "posix" >:::
[ "regression 213" >:: test_class_space
]

let () =
ignore (run_test_tt_main suite)
Loading