diff options
| author | Xuejie Xiao <[email protected]> | 2012-11-20 23:02:16 -0500 |
|---|---|---|
| committer | Xuejie Xiao <[email protected]> | 2012-11-20 23:02:16 -0500 |
| commit | a9c8ae49ebe1c54b93dcffa46370d4099e0c7ea3 (patch) | |
| tree | c2c37dde7d0503a4224b9371d5ecd4e19b8b1753 /test/t/float.rb | |
| parent | 8894cbe00f6202e2088000d2a3e7553fa7730bad (diff) | |
| download | mruby-a9c8ae49ebe1c54b93dcffa46370d4099e0c7ea3.tar.gz mruby-a9c8ae49ebe1c54b93dcffa46370d4099e0c7ea3.zip | |
Use check_float when testing equality for float values
Diffstat (limited to 'test/t/float.rb')
| -rw-r--r-- | test/t/float.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/t/float.rb b/test/t/float.rb index e2c139c03..abb5cf2e7 100644 --- a/test/t/float.rb +++ b/test/t/float.rb @@ -105,7 +105,7 @@ assert('Float#round', '15.2.9.3.12') do i = 3.423456789.round(3) a == 3 and b == 4 and c == 3 and d == -3 and e == -4 and - f == 12350 and g == 3 and h == 3.4 and i == 3.423 + f == 12350 and g == 3 and check_float(h, 3.4) and check_float(i, 3.423) end assert('Float#to_f', '15.2.9.3.13') do |
