]> gitweb.factorcode.org Git - factor.git/commitdiff
compiler.tests.codegen: fix fcos test
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 8 Feb 2024 00:23:29 +0000 (16:23 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 8 Feb 2024 00:23:29 +0000 (16:23 -0800)
basis/compiler/tests/codegen.factor

index 2ad5708d5849544bb143e1b76a1281a1e4670b0c..f91576a40d9a972fdc50cbec15fdf3cba37905c7 100644 (file)
@@ -5,7 +5,7 @@ sequences.private byte-arrays alien alien.accessors layouts
 words definitions compiler.units io combinators vectors grouping
 make alien.c-types alien.data combinators.short-circuit math.order
 math.libm math.parser math.functions alien.syntax memory
-stack-checker ;
+stack-checker literals system ;
 FROM: math => float ;
 QUALIFIED: namespaces.private
 IN: compiler.tests.codegen
@@ -399,8 +399,8 @@ cell 4 = [
 
 { } [ missing-gc-check-2 ] unit-test
 
-{ 1 "0.169967142900241" } [ 1.4 [ 1 swap fcos ] compile-call number>string ] unit-test
-{ 1 "0.169967142900241" } [ 1.4 1 [ swap fcos ] compile-call number>string ] unit-test
+${ 1 os macosx? "0.169967142900241" "0.16996714290024104" ? } [ 1.4 [ 1 swap fcos ] compile-call number>string ] unit-test
+${ 1 os macosx? "0.169967142900241" "0.16996714290024104" ? } [ 1.4 1 [ swap fcos ] compile-call number>string ] unit-test
 { "0.169967142900241" "0.9854497299884601" } [ 1.4 [ [ fcos ] [ fsin ] bi ] compile-call [ number>string ] bi@ ] unit-test
 { 1 "0.169967142900241" "0.9854497299884601" } [ 1.4 1 [ swap >float [ fcos ] [ fsin ] bi ] compile-call [ number>string ] bi@ ] unit-test