Skip to content

Commit

Permalink
Fix the regex test to work on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas committed Aug 17, 2018
1 parent 7835410 commit 76e39dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class RegexSpec extends FunSpec {
val reg = stackalloc[regex_t]

val compResult =
regcomp(reg, c"Scala \\(\\(J\\(VM\\|S\\)\\)\\|Native\\)", 0)
regcomp(reg, c"Scala \(J\(S\|VM\)\|Native\)", defines.REG_EXTENDED)
assert(compResult == 0)

assert(regexec(reg, c"Scala JVM", 0, null, 0) == 0)
Expand Down

0 comments on commit 76e39dd

Please sign in to comment.