lib/raap/minitest.rb in raap-0.5.0 vs lib/raap/minitest.rb in raap-0.6.0
- old
+ new
@@ -11,11 +11,11 @@
# forall("(Integer) -> String") { |int| Foo.new.int2str(int) }
type = types.first
method_type = RaaP::MethodType.new(type)
size_step.each do |size|
# TODO assert_send_type
- args, kwargs, _block = method_type.pick_arguments(size:)
+ args, kwargs, _block = method_type.pick_arguments(size: size)
return_value = yield(*args, **kwargs)
i = BindCall.inspect(return_value)
c = BindCall.class(return_value)
r = method_type.rbs.type.return_type
msg = "return value: #{i}[#{c}] is not match with `#{r}`"
@@ -28,10 +28,10 @@
in String then RaaP::Type.new(type)
else type
end
end
size_step.each do |size|
- values = types.map { |t| t.pick(size:) }
+ values = types.map { |t| t.pick(size: size) }
assert yield(*values)
end
end
end
end