test/RubyLess/errors.yml in rubyless-0.2.0 vs test/RubyLess/errors.yml in rubyless-0.3.0
- old
+ new
@@ -15,6 +15,18 @@
src: "while(true) do puts 'flood' end"
res: 'Bug! Unknown node-type :while to RubyLess::RubyLessProcessor'
add_two_strings:
src: "name + 14"
- res: "'var1.name' does not respond to '+(14)'."
+ res: "'var1.name' does not respond to '+(Number)'."
+
+two_arguments_in_hash:
+ src: "dictionary[:one, :two]"
+ res: "'get_dict' does not respond to '[](Symbol, Symbol)'."
+
+number_argument:
+ src: "dictionary[43]"
+ res: "'get_dict' does not respond to '[](Number)'."
+
+string_argument:
+ src: "dictionary[spouse.name]"
+ res: "'get_dict' does not respond to '[](String)'."
\ No newline at end of file