Skip to content

Commit 2fb1310

Browse files
committed
Core - make assert_similar less strict
1 parent 200b5f4 commit 2fb1310

File tree

1 file changed

+1
-1
lines changed
  • app/server/ruby/lib/sonicpi/lang

1 file changed

+1
-1
lines changed

app/server/ruby/lib/sonicpi/lang/core.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4720,7 +4720,7 @@ def assert_equal(arg1, arg2, msg=nil)
47204720
def assert_similar(a, b, msg=nil)
47214721
case a
47224722
when Numeric
4723-
assert_equal(a.to_f.round(8), b.to_f.round(8), msg)
4723+
assert_equal(a.to_f.round(5), b.to_f.round(5), msg)
47244724
else
47254725
assert_equal(a, b, msg)
47264726
end

0 commit comments

Comments
 (0)