test/RubyLess/basic.yml in rubyless-0.8.2 vs test/RubyLess/basic.yml in rubyless-0.8.3

- old
+ new

@@ -162,14 +162,10 @@ accept_nil_in_no_nil: src: "no_nil(accept_nil(dictionary[:foo]))" tem: "no_nil(accept_nil(get_dict[:foo]))" -parse_array: - src: "[3, 6]" - tem: '[3,6]' - noop_method: src: 'no_op("hello")' tem: '("hello")' res: 'hello' @@ -220,6 +216,26 @@ tem: "[\"45\",\"52\"].map(&:to_i).compact" res: "4552" map_forbidden_method: src: "%w{45 52}.map(:foo)" - tem: "unknown method 'map(:foo)' for '[\"45\",\"52\"]' of type Array." + tem: "unknown method 'map(:foo)' for '[\"45\",\"52\"]' of type [String]." + +eval_true: + src: "true" + tem: "true" + +eval_false: + src: "false" + tem: "false" + +number_array: + src: "[3, 6]" + tem: '[3,6]' + +string_array: + 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]." \ No newline at end of file