]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/math/compare/compare-tests.factor
factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!
[factor.git] / extra / math / compare / compare-tests.factor
index cedea4984c4c34423349132e88fd7d4b21a7b945..20b98a7f342525be2c4c06f714663a57cde07b89 100644 (file)
@@ -3,27 +3,27 @@ tools.test ;
 
 IN: math.compare.tests
 
-[ -1 ] [ -1 5 absmin ] unit-test
-[ -1 ] [ -1 -5 absmin ] unit-test
+{ -1 } [ -1 5 absmin ] unit-test
+{ -1 } [ -1 -5 absmin ] unit-test
 
-[ -5 ] [ 1 -5 absmax ] unit-test
-[ 5 ] [ 1 5 absmax ] unit-test
+{ -5 } [ 1 -5 absmax ] unit-test
+{ 5 } [ 1 5 absmax ] unit-test
 
-[ 0 ] [ -1 -3 posmax ] unit-test
-[ 1 ] [ 1 -3 posmax ] unit-test
-[ 3 ] [ -1 3 posmax ] unit-test
+{ 0 } [ -1 -3 posmax ] unit-test
+{ 1 } [ 1 -3 posmax ] unit-test
+{ 3 } [ -1 3 posmax ] unit-test
 
-[ 0 ] [ 1 3 negmin ] unit-test
-[ -3 ] [ 1 -3 negmin ] unit-test
-[ -1 ] [ -1 3 negmin ] unit-test
+{ 0 } [ 1 3 negmin ] unit-test
+{ -3 } [ 1 -3 negmin ] unit-test
+{ -1 } [ -1 3 negmin ] unit-test
 
-[ 1 ] [ 1 2 [ ] min-by ] unit-test
-[ 1 ] [ 2 1 [ ] min-by ] unit-test
-[ 42.0 ] [ 42.0 1/0. [ ] min-by ] unit-test
-[ 42.0 ] [ 1/0. 42.0 [ ] min-by ] unit-test
-[ 2 ] [ 1 2 [ ] max-by ] unit-test
-[ 2 ] [ 2 1 [ ] max-by ] unit-test
-[ 1/0. ] [ 42.0 1/0. [ ] max-by ] unit-test
-[ 1/0. ] [ 1/0. 42.0 [ ] max-by ] unit-test
-[ "12345" ] [ "123" "12345" [ length ] max-by ] unit-test
-[ "123" ] [ "123" "12345" [ length ] min-by ] unit-test
+{ 1 } [ 1 2 [ ] min-by ] unit-test
+{ 1 } [ 2 1 [ ] min-by ] unit-test
+{ 42.0 } [ 42.0 1/0. [ ] min-by ] unit-test
+{ 42.0 } [ 1/0. 42.0 [ ] min-by ] unit-test
+{ 2 } [ 1 2 [ ] max-by ] unit-test
+{ 2 } [ 2 1 [ ] max-by ] unit-test
+{ 1/0. } [ 42.0 1/0. [ ] max-by ] unit-test
+{ 1/0. } [ 1/0. 42.0 [ ] max-by ] unit-test
+{ "12345" } [ "123" "12345" [ length ] max-by ] unit-test
+{ "123" } [ "123" "12345" [ length ] min-by ] unit-test