diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2010-08-24 09:09:04 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2010-08-24 09:09:04 -0700 |
| commit | 14262c73119349fd5452db0811a577febbc77670 (patch) | |
| tree | d2cdef3e324346c84ed9fb6886ccdae405579084 | |
| parent | ca3ca041f39d34d76f7a5ee6fc8925bd2416e8aa (diff) | |
Rename lib tests, enable lib-int.rs using _str.eq for now.
| -rw-r--r-- | src/Makefile | 9 | ||||
| -rw-r--r-- | src/test/run-pass/int-lib.rs | 15 | ||||
| -rw-r--r-- | src/test/run-pass/lib-int.rs | 15 | ||||
| -rw-r--r-- | src/test/run-pass/lib-str.rs (renamed from src/test/run-pass/str-lib.rs) | 0 | ||||
| -rw-r--r-- | src/test/run-pass/lib-task.rs (renamed from src/test/run-pass/task-lib.rs) | 0 | ||||
| -rw-r--r-- | src/test/run-pass/lib-vec.rs (renamed from src/test/run-pass/vec-lib.rs) | 0 |
6 files changed, 19 insertions, 20 deletions
diff --git a/src/Makefile b/src/Makefile index 76e112721b1..086995385ef 100644 --- a/src/Makefile +++ b/src/Makefile @@ -406,7 +406,6 @@ TEST_XFAILS_X86 := $(TASK_XFAILS) \ test/run-pass/fn-lval.rs \ test/run-pass/generic-fn-infer.rs \ test/run-pass/generic-recursive-tag.rs \ - test/run-pass/int-lib.rs \ test/run-pass/iter-ret.rs \ test/run-pass/lib-io.rs \ test/run-pass/lib-map.rs \ @@ -475,7 +474,6 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \ i8-incr.rs \ import.rs \ integral-indexing.rs \ - int-lib.rs \ iter-range.rs \ iter-ret.rs \ large-records.rs \ @@ -483,9 +481,13 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \ lazy-init.rs \ lazychan.rs \ lib-deque.rs \ + lib-int.rs \ lib-io.rs \ lib-map.rs \ lib-rand.rs \ + lib-str.rs \ + lib-task.rs \ + lib-vec.rs \ lib-vec-str-conversions.rs \ linear-for-loop.rs \ list.rs \ @@ -519,8 +521,6 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \ str-append.rs \ str-concat.rs \ str-idx.rs \ - str-lib.rs \ - task-lib.rs \ tag.rs \ tail-cps.rs \ tail-direct.rs \ @@ -554,7 +554,6 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \ vec-drop.rs \ vec-in-tup.rs \ vec-late-init.rs \ - vec-lib.rs \ vec-slice.rs \ vec.rs \ while-flow-graph.rs \ diff --git a/src/test/run-pass/int-lib.rs b/src/test/run-pass/int-lib.rs deleted file mode 100644 index ce39de43921..00000000000 --- a/src/test/run-pass/int-lib.rs +++ /dev/null @@ -1,15 +0,0 @@ -use std; - -import std._int; - -fn test_to_str() { - check (_int.to_str(0, 10u) == "0"); - check (_int.to_str(1, 10u) == "1"); - check (_int.to_str(-1, 10u) == "-1"); - check (_int.to_str(255, 16u) == "ff"); - check (_int.to_str(-71, 36u) == "-1z"); -} - -fn main() { - test_to_str(); -} diff --git a/src/test/run-pass/lib-int.rs b/src/test/run-pass/lib-int.rs new file mode 100644 index 00000000000..ecca40b98bb --- /dev/null +++ b/src/test/run-pass/lib-int.rs @@ -0,0 +1,15 @@ +use std; + +import std._int; +import std._str.eq; + +fn test_to_str() { + check (eq(_int.to_str(0, 10u), "0")); + check (eq(_int.to_str(1, 10u), "1")); + check (eq(_int.to_str(-1, 10u), "-1")); + check (eq(_int.to_str(255, 16u), "ff")); +} + +fn main() { + test_to_str(); +} diff --git a/src/test/run-pass/str-lib.rs b/src/test/run-pass/lib-str.rs index 585f9b8de5f..585f9b8de5f 100644 --- a/src/test/run-pass/str-lib.rs +++ b/src/test/run-pass/lib-str.rs diff --git a/src/test/run-pass/task-lib.rs b/src/test/run-pass/lib-task.rs index 18499f4e5d0..18499f4e5d0 100644 --- a/src/test/run-pass/task-lib.rs +++ b/src/test/run-pass/lib-task.rs diff --git a/src/test/run-pass/vec-lib.rs b/src/test/run-pass/lib-vec.rs index ccd83d33284..ccd83d33284 100644 --- a/src/test/run-pass/vec-lib.rs +++ b/src/test/run-pass/lib-vec.rs |
