]> gitweb.factorcode.org Git - factor.git/commitdiff
math: adding a simple test for bignum_square.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 6 Jun 2014 17:58:58 +0000 (10:58 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 6 Jun 2014 17:58:58 +0000 (10:58 -0700)
core/math/math-tests.factor

index fb25886e702fbdc2929c9f32a4e90caf22c4a02a..9dcba0e6d17099141d74ef753328e1592b33a643 100644 (file)
@@ -93,3 +93,6 @@ IN: math.tests
 { 4 } [ 3 next-power-of-2 ] unit-test
 { 4 } [ 4 next-power-of-2 ] unit-test
 { 8 } [ 5 next-power-of-2 ] unit-test
+
+{ t } [ 128 2^ sq 256 2^ = ] unit-test
+{ t } [ 128 2^ neg sq 256 2^ = ] unit-test