summaryrefslogtreecommitdiff
path: root/test/scanners/ruby/regexp.in.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2010-04-14 23:59:03 +0000
committermurphy <murphy@rubychan.de>2010-04-14 23:59:03 +0000
commit200144dd009d33ff8334be24d0fb2cc91b3a87ab (patch)
treef46c939cd01b8d4165b5d9f3444c20e072b51408 /test/scanners/ruby/regexp.in.rb
parent612a14e17bdae5dbb5b13cdceec797523725cbbe (diff)
downloadcoderay-200144dd009d33ff8334be24d0fb2cc91b3a87ab.tar.gz
Moving scanner tests into separate repository. The repository can be reached at http://svn.rubychan.de/coderay-scanner-tests/trunk.
Diffstat (limited to 'test/scanners/ruby/regexp.in.rb')
-rw-r--r--test/scanners/ruby/regexp.in.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/test/scanners/ruby/regexp.in.rb b/test/scanners/ruby/regexp.in.rb
deleted file mode 100644
index e10e7a8..0000000
--- a/test/scanners/ruby/regexp.in.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-# Regexp or division?
-some_string.to_i /\s+/
-some_string.split / +/ this is a regexp after a division /
-some_string.split / + / this one, too /
-some_string.split /- / # and this one is a regexp without division
-
-it "allows substitution to interact with other Regexp constructs" do
- str = "foo)|(bar"
- /(#{str})/.should == /(foo)|(bar)/
-
- str = "a"
- /[#{str}-z]/.should == /[a-z]/
-
- not_compliant_on(:ruby) do
- str = "J"
- re = /\c#{str}/.should == /\cJ/
- end
-end \ No newline at end of file