]> gitweb.factorcode.org Git - factor.git/commitdiff
prettyprint: make sure float number-base is tested.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sun, 11 Jun 2017 20:45:22 +0000 (13:45 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 11 Jun 2017 20:45:22 +0000 (13:45 -0700)
basis/prettyprint/prettyprint-tests.factor

index 2717ab6c6d98600237a064bed2cc668d4b2cf42c..272360c6bf4104f8e7724f8a93051db26cd57eea 100644 (file)
@@ -15,7 +15,9 @@ IN: prettyprint.tests
 { "0x1000" } [ 16 number-base [ 4096 unparse ] with-variable ] unit-test
 { "1.0" } [ 1.0 unparse ] unit-test
 { "8.0" } [ 8.0 unparse ] unit-test
-{ "0x1.0p3" } [ 16 number-base [ 8.0 unparse ] with-variable ] unit-test
+{ "0b1.001p4" } [ 2 number-base [ 18.0 unparse ] with-variable ] unit-test
+{ "0o1.1p4" } [ 8 number-base [ 18.0 unparse ] with-variable ] unit-test
+{ "0x1.2p4" } [ 16 number-base [ 18.0 unparse ] with-variable ] unit-test
 { "1267650600228229401496703205376" } [ 1 100 shift unparse ] unit-test
 
 { "+" } [ \ + unparse ] unit-test