Skip to content

Commit

Permalink
test(str): incorrect group specification (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrinberg authored Nov 1, 2024
1 parent 912e8ab commit 140deeb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib_test/expect/test_str.ml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,12 @@ let%expect_test "match semantics" =

let%expect_test "Group (or submatch)" =
eq_match "\\(a\\)\\(a\\)?\\(b\\)" "ab";
[%expect {| |}]
[%expect {| |}];
eq_match "\\(foo" "foo";
[%expect {|
str: (Error "Failure(\"\\\\( group not closed by \\\\)\")")
re: (Error Re_private.Emacs.Parse_error)
|}]
;;

let%expect_test "Character set" =
Expand Down

0 comments on commit 140deeb

Please sign in to comment.