]> gitweb.factorcode.org Git - factor.git/commitdiff
fix unit test failures
authorSlava Pestov <slava@factorcode.org>
Wed, 13 Jul 2005 19:34:38 +0000 (19:34 +0000)
committerSlava Pestov <slava@factorcode.org>
Wed, 13 Jul 2005 19:34:38 +0000 (19:34 +0000)
CHANGES.txt
library/test/crashes.factor
library/test/httpd/html.factor
library/test/inspector.factor
library/test/lists/queues.factor
library/test/sequences.factor
native/factor.c

index 17ec48a862354ec659e2cc6c5fcabbbc81dce8cb..9c883422c20f9c261bece5f170d317ea4a8d0f39 100644 (file)
@@ -4,8 +4,11 @@ Factor 0.76:
 + Runtime and core library:
 
 - The number of generations used for garbage collection can now be set
-  with the +G command line switch; eg, +G3 is the default. You must
-  specify at least 2 generations.
+  with the +G command line switch. You must specify at least 2
+  generations.
+
+- Only 2 generations are used by default now, since there seems to be no
+  performance benefit to having 3 after running some brief benchmarks.
 
 - New words:
 
index f9fda23a92fdfe72770af272dbb4bfb8f8745b09..7c015dc35b0830a9132c69d12caa044b6ddbb750 100644 (file)
@@ -30,4 +30,4 @@ prettyprint sequences strings test vectors words ;
     full-gc
 ] unit-test
 
-[ ] [ f size ] unit-test
+[ ] [ f size ] unit-test
index 3d3a9100e6fefcd20fc566f7a6073aecdceb69ab..89fd7243b1249e59ef4da751ceb42e70a6eb946d 100644 (file)
@@ -1,10 +1,5 @@
 IN: temporary
-USE: html
-USE: namespaces
-USE: io
-USE: strings
-USE: test
-USE: kernel
+USING: html io kernel namespaces styles test ;
 
 [
     "&lt;html&gt;&amp;&apos;sgml&apos;"
@@ -22,7 +17,7 @@ USE: kernel
 [
     [
         ""
-        [ [[ "icon" "library/icons/File.png" ]] ]
+        [ [[ icon "library/icons/File.png" ]] ]
         [ drop ] icon-tag
     ] string-out
 ] unit-test
@@ -37,7 +32,7 @@ USE: kernel
 [ "<span style='color: #ff00ff; font-family: Monospaced; '>car</span>" ]
 [
     [
-        [ [ "fg" 255 0 255 ] [[ "font" "Monospaced" ]] ]
+        [ [ foreground 255 0 255 ] [[ font "Monospaced" ]] ]
         [ drop "car" write ]
         span-tag
     ] string-out
@@ -55,7 +50,7 @@ USE: kernel
 [
     [
         "car"
-        [ [ "fg" 255 0 255 ] [[ "font" "Monospaced" ]] ]
+        [ [ foreground 255 0 255 ] [[ font "Monospaced" ]] ]
         html-write-attr
     ] string-out
 ] unit-test
index e38641c249773999222cdedd3bc0ef7823711596..8d32470c8fbb6b78c7b597da70f160175c4cc6e2 100644 (file)
@@ -1,10 +1,10 @@
 IN: temporary
 USING: test inspector prettyprint math ;
 
-[[ 1 2 ]] inspect .
-[ 1 2 3 ] inspect .
-f inspect .
-\ + inspect .
+[[ 1 2 ]] inspect
+[ 1 2 3 ] inspect
+f inspect
+\ + inspect
 
 [ "hello world how are you" ]
 [ [ "hello" "world" "how" "are" "you" ] " " join ]
index 51d12a7169a542b9c1a27bf55b9e6200ae3a19c5..4ff439e0ef0925a8d488e3dfb211489c9eaab7a5 100644 (file)
@@ -5,9 +5,3 @@ USING: kernel lists math sequences test ;
     <queue> [ 1 2 3 4 5 ] [ swap enque ] each
     5 [ drop deque swap ] project nip
 ] unit-test
-
-[ [ 1 4 9 16 25 ] ] [
-    <queue> [ 1 2 3 4 5 ] [ swap enque ] each
-    [ sq ] que-map
-    5 [ drop deque swap ] project nip
-] unit-test
index 123bc8afa3f858b2a0410aec504a29038c83047c..be909c15596b491893ff18c7863b35944d5b4615 100644 (file)
@@ -18,4 +18,4 @@ USING: lists math sequences test vectors ;
 [ 5040 ] [ [ 1 2 3 4 5 6 7 ] 1 [ * ] reduce ] unit-test
 
 [ [ 1 1 2 6 24 120 720 ] ]
-[ [ 1 2 3 4 5 6 7 ] 1 [ * ] accumilate ] unit-test
+[ [ 1 2 3 4 5 6 7 ] 1 [ * ] accumulate ] unit-test
index 44197b90b54983224ecba1f425b4fe8cf8988975..fc3f83ab76463d84da01764ce37f501096e5387c 100644 (file)
@@ -37,7 +37,7 @@ int main(int argc, char** argv)
 {
        CELL ds_size = 2048;
        CELL cs_size = 2048;
-       CELL generations = 3;
+       CELL generations = 2;
        CELL young_size = 8;
        CELL aging_size = 16;
        CELL code_size = 2;