]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/core-text/core-text-tests.factor
factor: trim using lists
[factor.git] / basis / core-text / core-text-tests.factor
index b6b54df7c3b567865a3926ce0c6d2a7a0967adfa..ce973b2abe21f78de1845a34e9a2344075a46f68 100644 (file)
@@ -1,17 +1,17 @@
 ! Copyright (C) 2009 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: tools.test core-text core-text.fonts core-foundation
-core-foundation.dictionaries destructors arrays kernel generalizations
-locals math accessors core-foundation.utilities combinators hashtables colors
-colors.constants ;
+core-foundation.dictionaries destructors arrays kernel
+generalizations math accessors core-foundation.utilities
+combinators hashtables colors ;
 IN: core-text.tests
 
 : test-font ( name -- font )
     [ >cf &CFRelease 0.0 f CTFontCreateWithName ] with-destructors ;
 
-[ ] [ "Helvetica" test-font CFRelease ] unit-test
+{ } [ "Helvetica" test-font CFRelease ] unit-test
 
-[ ] [
+{ } [
     [
         kCTFontAttributeName "Helvetica" test-font &CFRelease 2array 1array
         <CFDictionary> &CFRelease drop
@@ -30,8 +30,8 @@ IN: core-text.tests
         } cleave and and and
     ] with-destructors ;
 
-[ t ] [ "Hello world" "Helvetica" test-typographic-bounds ] unit-test
+{ t } [ "Hello world" "Helvetica" test-typographic-bounds ] unit-test
 
-[ t ] [ "Hello world" "Chicago" test-typographic-bounds ] unit-test
+{ t } [ "Hello world" "Chicago" test-typographic-bounds ] unit-test
 
-[ t ] [ "日本語" "Helvetica" test-typographic-bounds ] unit-test
+{ t } [ "日本語" "Helvetica" test-typographic-bounds ] unit-test