lib: new /lib/standard/collection directory
authorJean Privat <jean@pryen.org>
Mon, 3 Aug 2009 18:09:34 +0000 (14:09 -0400)
committerJean Privat <jean@pryen.org>
Thu, 6 Aug 2009 15:29:23 +0000 (11:29 -0400)
* Update tests.sh to add the new -I for some base_* tests

Signed-off-by: Jean Privat <jean@pryen.org>

lib/standard/collection/abstract_collection.nit [moved from lib/standard/abstract_collection.nit with 100% similarity]
lib/standard/collection/array.nit [moved from lib/standard/array.nit with 100% similarity]
lib/standard/collection/collection.nit [new file with mode: 0644]
lib/standard/collection/list.nit [moved from lib/standard/list.nit with 100% similarity]
lib/standard/collection/range.nit [moved from lib/standard/range.nit with 100% similarity]
lib/standard/collection/sorter.nit [moved from lib/standard/sorter.nit with 100% similarity]
lib/standard/standard.nit
lib/standard/string.nit
tests/sav/nitdoc_args1.sav
tests/tests.sh

diff --git a/lib/standard/collection/collection.nit b/lib/standard/collection/collection.nit
new file mode 100644 (file)
index 0000000..ea08285
--- /dev/null
@@ -0,0 +1,20 @@
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Copyright 2009 Jean Privat <jean@pryen.org>
+#
+# This file is free software, which comes along with NIT.  This software is
+# distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
+# without  even  the implied warranty of  MERCHANTABILITY or  FITNESS FOR A
+# PARTICULAR PURPOSE.  You can modify it is you want,  provided this header
+# is kept unaltered, and a notification of the changes is added.
+# You  are  allowed  to  redistribute it and sell it, alone or is a part of
+# another product.
+
+# This module define several collection classes.
+package collection
+
+import abstract_collection
+import range
+import list
+intrude import array # FIXME because of string.nit
+import sorter
index 224aebe..2c5f73a 100644 (file)
@@ -17,16 +17,12 @@ package standard
 import environ 
 import time
 import string_search
-import sorter
 import file
 import exec
 import stream
 import hash
-import list
 import symbol
 import string
-import array
-import range
-import abstract_collection
+import collection
 import math
 import kernel
index 46f8422..1c7e953 100644 (file)
@@ -14,7 +14,7 @@
 # This module is about character strings.
 package string
 
-intrude import array
+intrude import collection # FIXME should be collection::array
 
 ###############################################################################
 # String                                                                      #
index 8fdb627..4c03552 100644 (file)
@@ -2,6 +2,9 @@ abstract_collection.html
 abstract_collection__.html
 array.html
 array__.html
+collection.html
+collection_.html
+collection__.html
 dummy_array.html
 dummy_array__.html
 environ.html
index 19b278c..4a0d6a3 100755 (executable)
@@ -135,7 +135,7 @@ for ii in "$@"; do
 
        tmp=${ii/../AA}
        if [ "x$tmp" = "x$ii" ]; then
-               oincludes="-I . -I ../lib/standard"
+               oincludes="-I . -I ../lib/standard -I ../lib/standard/collection"
        else
                oincludes=""
        fi