test/RubyLess/basic.yml in rubyless-0.8.5 vs test/RubyLess/basic.yml in rubyless-0.8.6
- old
+ new
@@ -251,6 +251,15 @@
src: "%w{foo bar}.join(',')"
res: 'foo,bar'
array_bad_method:
src: "%w{foo bar}.plop(',')"
- res: "unknown method 'plop(String)' for '[\"foo\",\"bar\"]' of type [String]."
+ res: "unknown method 'plop(String)' for '[\"foo\",\"bar\"]' of type [String]."
+
+nil:
+ src: 'nil'
+ tem: 'nil'
+
+nil_in_op:
+ src: '(dictionary[:foo] == "something" ? "foo" : nil)'
+ tem: '(get_dict[:foo]=="something") ? "foo" : nil'
+ res: ''
\ No newline at end of file