Skip to content

Commit

Permalink
Merge pull request #166 from jonas/macos-regex-test-fix
Browse files Browse the repository at this point in the history
Fix the regex test to work on macOS
  • Loading branch information
kornilova203 authored Aug 17, 2018
2 parents 575fd0a + 76e39dd commit fad5595
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 fad5595

Please sign in to comment.