]> gitweb.factorcode.org Git - factor.git/blob - extra/math/floating-point/floating-point-tests.factor
Update documentation for stricter vocabulary search path semantics
[factor.git] / extra / math / floating-point / floating-point-tests.factor
1 ! Copyright (C) 2008 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: tools.test math.floating-point kernel
4 math.constants fry sequences math ;
5 IN: math.floating-point.tests
6
7 [ t ] [ pi >double< >double pi = ] unit-test
8 [ t ] [ -1.0 >double< >double -1.0 = ] unit-test
9
10 [ t ] [ 1/0. infinity? ] unit-test
11 [ t ] [ -1/0. infinity? ] unit-test
12 [ f ] [ 0/0. infinity? ] unit-test
13 [ f ] [ 10. infinity? ] unit-test
14 [ f ] [ -10. infinity? ] unit-test
15 [ f ] [ 0. infinity? ] unit-test