Skip to content

Commit

Permalink
add test for #2529
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Jul 10, 2024
1 parent 7c12593 commit 717a527
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_regexp.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ function test(a, b) {
console.log("Test "+tests+" failed - ",a,"vs",b);
}

print("0.5=",(1)/2); // test for parsing something that isn't a regexp

testreg(new RegExp("a").exec("bc"), null);
testreg(/a/.exec("abcdef"),"a",0);
testreg(/a/.exec("bcdaef"),"a",3);
Expand Down

0 comments on commit 717a527

Please sign in to comment.