Skip to content

Commit 25254a4

Browse files
committed
Test trivial cases.
1 parent 20a30dc commit 25254a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test_ppx_regexp.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
* along with this library. If not, see <http://www.gnu.org/licenses/>.
1515
*)
1616

17+
let () =
18+
(match%pcre "%" with _ -> ());
19+
(match%pcre "%" with s -> assert (s = "%"));
20+
(function%pcre _ -> ()) "%";
21+
(function%pcre s -> assert (s = "%")) "%"
22+
1723
let test1 =
1824
(function%pcre
1925
| {|^(?<k>.*): *(?<v>.+)?$|} -> `Attr (k, v)

0 commit comments

Comments
 (0)