diff options
author | murphy <murphy@rubychan.de> | 2010-04-14 23:59:03 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-04-14 23:59:03 +0000 |
commit | 200144dd009d33ff8334be24d0fb2cc91b3a87ab (patch) | |
tree | f46c939cd01b8d4165b5d9f3444c20e072b51408 /test/scanners/ruby/unicode.in.rb | |
parent | 612a14e17bdae5dbb5b13cdceec797523725cbbe (diff) | |
download | coderay-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/unicode.in.rb')
-rw-r--r-- | test/scanners/ruby/unicode.in.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/test/scanners/ruby/unicode.in.rb b/test/scanners/ruby/unicode.in.rb deleted file mode 100644 index 5474072..0000000 --- a/test/scanners/ruby/unicode.in.rb +++ /dev/null @@ -1,30 +0,0 @@ -ä = 42 -print ä - -def straße(frühstück) - höhle(frühstück) -end - -alias λ lambda -× = λ{ |x,y| x*y} -×[2,3] # => 6 - -# Summe der ersten 10 Quadratzahlen -def ∑ enum - enum.inject(0) { |sum, x| sum + yield(x) } -end - -∑(1..10) { |x| x**2 } # => 385 - -# mehr Mathematische Zeichen -def ∞; 1.0 / 0.0; end -def π; Math::PI; end - --∞ .. 2*π # => -Infinity..6.28318530717959 - -# Azumanga Daioh Insider -class << Osaka = Object.new - def ぁ! - sleep ∞ - end -end
\ No newline at end of file |