Do not report float numbers as large if fraction has less than 3 digits

This commit is contained in:
Vitalii Elenhaupt 2018-05-13 19:01:39 +03:00
parent 7a4fcec5ce
commit 1cea21b147
No known key found for this signature in database
GPG key ID: 7558EF3A4056C706
2 changed files with 5 additions and 1 deletions

View file

@ -69,6 +69,10 @@ module Ameba
11_234e10_f32
+1.123
-0.000_5
1200.0
1200.01
1200.012
)
subject.catch(s).should be_valid
end