]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/ini-file/ini-file-tests.factor
Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring...
[factor.git] / extra / ini-file / ini-file-tests.factor
index 473b8a9ebc32447463ae97bd257bed33e72ce598..fefd3c80654f7c2a8620d7a60eb6a6dc35365622 100644 (file)
@@ -5,23 +5,23 @@ USING: ini-file tools.test ;
 
 IN: ini-file.tests
 
-{ H{ } } [ "" string>ini ] unit-test
+[ H{ } ] [ "" string>ini ] unit-test
 
-{ H{ { "section" H{ } } } } [ "[section]" string>ini ] unit-test
+[ H{ { "section" H{ } } } ] [ "[section]" string>ini ] unit-test
 
-{ H{ { "section" H{ } } } } [ "[\"section\" ]" string>ini ] unit-test
+[ H{ { "section" H{ } } } ] [ "[\"section\" ]" string>ini ] unit-test
 
-{ H{ { "   some name with spaces " H{ } } } }
+[ H{ { "   some name with spaces " H{ } } } ]
 [ "[ \"   some name with spaces \"]" string>ini ] unit-test
 
-{ H{ { "[]" H{ } } } } [ "[\\[\\]]" string>ini ] unit-test
+[ H{ { "[]" H{ } } } ] [ "[\\[\\]]" string>ini ] unit-test
 
-{ H{ { "foo" "bar" } } } [ "foo=bar" string>ini ] unit-test
+[ H{ { "foo" "bar" } } ] [ "foo=bar" string>ini ] unit-test
 
-{ H{ { "foo" "bar" } { "baz" "quz" } } }
+[ H{ { "foo" "bar" } { "baz" "quz" } } ]
 [ "foo=bar\nbaz= quz" string>ini ] unit-test
 
-{ H{ { "section" H{ { "foo" "abc def" } } } } }
+[ H{ { "section" H{ { "foo" "abc def" } } } } ]
 [
     """
     [section]
@@ -29,7 +29,7 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-{ H{ { "section" H{ { "foo" "abc def" } } } } }
+[ H{ { "section" H{ { "foo" "abc def" } } } } ]
 [
     """
     [section]
@@ -38,7 +38,7 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-{ H{ { "section" H{ { "foo" "abc def" } } } } }
+[ H{ { "section" H{ { "foo" "abc def" } } } } ]
 [
     """
     [section]
@@ -47,14 +47,14 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-{ H{ { "section" H{ { "foo" "abc def" } } } } }
+[ H{ { "section" H{ { "foo" "abc def" } } } } ]
 [
     """
     [section]   foo = "abc def"
     """ string>ini
 ] unit-test
 
-{ H{ { "section" H{ { "foo" "abc def" } } } } }
+[ H{ { "section" H{ { "foo" "abc def" } } } } ]
 [
     """
     [section]   foo = abc \\
@@ -62,7 +62,7 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-{ H{ { "section" H{ { "foo" "" } } } } }
+[ H{ { "section" H{ { "foo" "" } } } } ]
 [
     """
     [section]
@@ -70,7 +70,7 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-{ H{ { "section" H{ { "foo" "" } } } } }
+[ H{ { "section" H{ { "foo" "" } } } } ]
 [
     """
     [section]
@@ -78,7 +78,7 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-{ H{ { "" H{ { "" "" } } } } }
+[ H{ { "" H{ { "" "" } } } } ]
 [
     """
     []
@@ -86,11 +86,11 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-{ H{ { "owner" H{ { "name" "John Doe" }
+[ H{ { "owner" H{ { "name" "John Doe" }
                   { "organization" "Acme Widgets Inc." } } }
      { "database" H{ { "server" "192.0.2.62" }
                      { "port" "143" }
-                     { "file" "payroll.dat" } } } } }
+                     { "file" "payroll.dat" } } } } ]
 [
     """
     ; last modified 1 April 2001 by John Doe
@@ -105,8 +105,8 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-{ H{ { "a long section name"
-       H{ { "a long key name" "a long value name" } } } } }
+[ H{ { "a long section name"
+       H{ { "a long key name" "a long value name" } } } } ]
 [
     """
     [a long section name ]
@@ -114,8 +114,8 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-{ H{ { "key with \n esc\ape \r codes \""
-       "value with \t esc\ape codes" } } }
+[ H{ { "key with \n esc\ape \r codes \""
+       "value with \t esc\ape codes" } } ]
 [
     """
     key with \\n esc\\ape \\r codes \\\" = value with \\t esc\\ape codes
@@ -123,7 +123,7 @@ IN: ini-file.tests
 ] unit-test
 
 
-{ """key with \\n esc\\ape \\r codes \\\"=value with \\t esc\\ape codes\n""" }
+[ """key with \\n esc\\ape \\r codes \\\"=value with \\t esc\\ape codes\n""" ]
 [
     H{ { "key with \n esc\ape \r codes \""
          "value with \t esc\ape codes" } } ini>string