]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/classes/struct/vectored/vectored-tests.factor
factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!
[factor.git] / extra / classes / struct / vectored / vectored-tests.factor
index 4b3985b98bf9ba4df0017465857ebae462789ba5..163de7d25fdad080c67f51b43d7263000384903e 100644 (file)
@@ -14,23 +14,23 @@ STRUCT: foo
 SPECIALIZED-ARRAY: foo
 VECTORED-STRUCT: foo
 
-[
+{
     T{ vectored-foo
         { x int-array{    0   1   0   0   } }
         { y float-array{  0.0 2.0 0.0 0.0 } }
         { z ushort-array{ 0   3   0   0   } }
         { w ushort-array{ 0   4   0   0   } }
     }
-] [ S{ foo f 1 2.0 3 4 } 4 <vectored-foo> [ set-second ] keep ] unit-test
+} [ S{ foo f 1 2.0 3 4 } 4 <vectored-foo> [ set-second ] keep ] unit-test
 
-[
+{
     T{ vectored-foo
         { x int-array{     0    1    2    3   } }
         { y float-array{   0.0  0.5  1.0  1.5 } }
         { z ushort-array{ 10   20   30   40   } }
         { w ushort-array{ 15   25   35   45   } }
     }
-] [
+} [
     foo-array{
         S{ foo { x 0 } { y 0.0 } { z 10 } { w 15 } }
         S{ foo { x 1 } { y 0.5 } { z 20 } { w 25 } }
@@ -39,14 +39,14 @@ VECTORED-STRUCT: foo
     } struct-transpose
 ] unit-test
 
-[
+{
     foo-array{
         S{ foo { x 0 } { y 0.0 } { z 10 } { w 15 } }
         S{ foo { x 1 } { y 0.5 } { z 20 } { w 25 } }
         S{ foo { x 2 } { y 1.0 } { z 30 } { w 35 } }
         S{ foo { x 3 } { y 1.5 } { z 40 } { w 45 } }
     }
-] [
+} [
     T{ vectored-foo
         { x int-array{     0    1    2    3   } }
         { y float-array{   0.0  0.5  1.0  1.5 } }
@@ -55,7 +55,7 @@ VECTORED-STRUCT: foo
     } struct-transpose
 ] unit-test
 
-[ 30 ] [
+{ 30 } [
     T{ vectored-foo
         { x int-array{     0    1    2    3   } }
         { y float-array{   0.0  0.5  1.0  1.5 } }
@@ -64,7 +64,7 @@ VECTORED-STRUCT: foo
     } third z>>
 ] unit-test
 
-[ S{ foo { x 2 } { y 1.0 } { z 30 } { w 35 } } ] [
+{ S{ foo { x 2 } { y 1.0 } { z 30 } { w 35 } } } [
     T{ vectored-foo
         { x int-array{     0    1    2    3   } }
         { y float-array{   0.0  0.5  1.0  1.5 } }
@@ -73,7 +73,7 @@ VECTORED-STRUCT: foo
     } third vectored-element>
 ] unit-test
 
-[ ] [
+{ } [
     [
         foo specialized-array-vocab forget-vocab
     ] with-compilation-unit