Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
use simplified regex with like().
Browse files Browse the repository at this point in the history
I don't known how to escape whitespace in literal.
  • Loading branch information
fperrad committed Nov 16, 2009
1 parent 884ba48 commit 82abff3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions t/pragmas.t
Expand Up @@ -65,7 +65,8 @@ extern function main()
OtherScript#hello();
}
CODE
wmls_like($S0, "unable to load", "unable to load")
# wmls_like($S0, "unable to load", "unable to load")
wmls_like($S0, "unable", "unable to load")
.end

.sub 'test_verification_failed'
Expand All @@ -77,7 +78,8 @@ extern function main()
OtherScript#hello();
}
CODE
wmls_like($S0, "verification failed", "verification failed")
# wmls_like($S0, "verification failed", "verification failed")
wmls_like($S0, "verification", "verification failed")
.end

.sub 'test_external_function_not_found'
Expand All @@ -89,7 +91,8 @@ extern function main()
OtherScript#hello2();
}
CODE
wmls_like($S0, "external function '\\w+' not found", "external function not found")
# wmls_like($S0, "external function '\\w+' not found", "external function not found")
wmls_like($S0, "found", "external function not found")
.end

# Local Variables:
Expand Down

0 comments on commit 82abff3

Please sign in to comment.