mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 14:05:02 +02:00
16 lines
217 B
Ruby
16 lines
217 B
Ruby
assert_equal 'true', %q{
|
|
def nil_nil = nil == nil
|
|
nil_nil
|
|
}
|
|
|
|
assert_equal 'true', %q{
|
|
def lt(a, b) = a < b
|
|
lt(1, 2)
|
|
lt('a', 'b')
|
|
}
|
|
|
|
assert_equal '3', %q{
|
|
def foo = 2
|
|
def bar = 1 + foo + nil.to_i
|
|
bar
|
|
}
|