summaryrefslogtreecommitdiff
path: root/test/scanners/ruby/operators.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/operators.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/operators.in.rb')
-rw-r--r--test/scanners/ruby/operators.in.rb51
1 files changed, 0 insertions, 51 deletions
diff --git a/test/scanners/ruby/operators.in.rb b/test/scanners/ruby/operators.in.rb
deleted file mode 100644
index 8fa7090..0000000
--- a/test/scanners/ruby/operators.in.rb
+++ /dev/null
@@ -1,51 +0,0 @@
-class Feeling
-
- def ~
- p :drunk
- end
-
- def !
- p :alert
- end
-
- alias not !@
- alias tilde ~@
-
- def -@
- p :bad
- end
-
- def +@
- p :good
- end
-
-end
-
-feeling = Feeling.new
-
--feeling # => :bad
-+feeling # => :good
-!feeling # => :alert
-~feeling # => :drunk
-
-def =~ other
- bla
-end
-
-feeling.! # => :alert
-feeling.~ # => :drunk
-feeling.!@ # => :alert
-feeling.~@ # => :drunk
-feeling.-@() # => :bad
-feeling.+@() # => :good
-
-# >> :bad
-# >> :good
-# >> :alert
-# >> :drunk
-# >> :alert
-# >> :drunk
-# >> :alert
-# >> :drunk
-# >> :bad
-# >> :good