test/RubyLess/basic.yml in rubyless-0.5.0 vs test/RubyLess/basic.yml in rubyless-0.6.0

- old
+ new

@@ -1,8 +1,8 @@ empty: src: "" - tem: null + tem: "" numbers: src: "id > 45 and (3 > -id or 3+3)" tem: "((node.zip>45) and ((3>-node.zip) or (3+3)))" @@ -182,6 +182,23 @@ src: 'find("one two")' tem: 'secure(Node) { Node.find("one two") }' methods_on_nil: src: 'dictionary[:foo].blank?' - tem: 'get_dict[:foo].blank?' \ No newline at end of file + tem: 'get_dict[:foo].blank?' + +equality_on_nil: + src: 'dictionary[:foo] == "yo"' + tem: '(get_dict[:foo]=="yo")' + +or_same_class: + src: "vowel_count(dictionary[:bar] || 'aeiou')" + tem: 'vowel_count((get_dict[:bar] or "aeiou"))' + res: '5' + +class: + src: "@foo.kind_of?(Page)" + tem: "node.kind_of?(Page)" + +class_map_as_string: + src: "@foo.kind_of?(Document)" + tem: "node.is_like?(\"DOC\")"