提交 14262c73 编写于 作者: G Graydon Hoare

Rename lib tests, enable lib-int.rs using _str.eq for now.

上级 ca3ca041
......@@ -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 \
......
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();
}
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();
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册