Sha256: 8f792bef762e1ffe5729f99aa2a2b63c3a72b51d68778384e3b53421cc738680

Contents?: true

Size: 811 Bytes

Versions: 3

Compression:

Stored size: 811 Bytes

Contents

unknown_global_method:
  src: "system('echo date')"
  res: "Unknown method 'system(\"echo date\")'."

bad_argument_types:
  src: "strftime(34,'ffoo')"
  res: "Unknown method 'strftime(34, \"ffoo\")'."

zero_div:
  src: "1/(id-10)"
  tem: "(1/(var1.zip-10) rescue nil)"
  res: ""
  
looping:
  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 '+(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)'."

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubyless-0.3.2 test/RubyLess/errors.yml
rubyless-0.3.1 test/RubyLess/errors.yml
rubyless-0.3.0 test/RubyLess/errors.yml