testing issue 584

This commit is contained in:
Jeremy Ashkenas 2010-10-05 00:16:55 -04:00
parent 8bc706a94e
commit 08388fea5a
1 changed files with 8 additions and 0 deletions

View File

@ -34,3 +34,11 @@ eq '\\\\#{}\\\\\\\"', ///
\\ \"
///.source
eq /// /// + '', '/(?:)/'
# Issue #584.
regex = /[/]/
s1 = "Hello there"
s2 = "Hello / there"
ok not regex.test(s1)
ok regex.test(s2)