We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 35eef2e + ef8414c commit f6e2dddCopy full SHA for f6e2ddd
repository/STON-Tests.package/STONReaderTest.class/instance/testFloat.st
@@ -1,5 +1,6 @@
1
tests
2
testFloat
3
+
4
self assert: ((self materialize: '1.5') closeTo: 1.5).
5
self assert: ((self materialize: '-1.5') closeTo: -1.5).
6
self assert: (self materialize: '0.0') isZero.
@@ -11,4 +12,4 @@ testFloat
11
12
self assert: (self materialize: 'Float[#nan]') isNaN.
13
self assert: (self materialize: 'Float[#infinity]') equals: Float infinity.
14
self assert: (self materialize: 'Float[#negativeInfinity]') equals: Float negativeInfinity.
- self assert: (Float pi closeTo: (self materialize: 'Float[3.14149]'))
15
+ self assert: (Float pi closeTo: (self materialize: 'Float[3.14159]') precision: 0.00001)
0 commit comments