test/test-expression.rb in red-arrow-12.0.1 vs test/test-expression.rb in red-arrow-13.0.0
- old
+ new
@@ -34,7 +34,18 @@
test("[String, String]") do
assert_equal(Arrow::CallExpression.new("func", ["argument1"]),
Arrow::Expression.try_convert(["func", "argument1"]))
end
+
+ test("[Symbol, String, Hash]") do
+ options = Arrow::MatchSubstringOptions.new
+ options.pattern = "hello"
+ assert_equal(Arrow::CallExpression.new("match_substring",
+ ["content"],
+ options),
+ Arrow::Expression.try_convert([:match_substring,
+ "content",
+ {pattern: "hello"}]))
+ end
end
end