test/RubyLess/basic.yml in rubyless-0.3.4 vs test/RubyLess/basic.yml in rubyless-0.3.5
- old
+ new
@@ -89,5 +89,15 @@
res: "2"
safe_method_defined_as_symbol:
src: "foo"
tem: "contextual_foo"
+
+optional_arguments:
+ src: "width(:mode => 'pv')"
+ tem: "var1.width({:mode => \"pv\"})"
+ res: "mode: pv, type: none"
+
+optional_arguments_string:
+ src: "width('nice' => 1 == 1)"
+ tem: "var1.width({\"nice\" => (1==1)})"
+ res: "nice!"
\ No newline at end of file