Skip to content

Commit 14262c7

Browse files
committed
Rename lib tests, enable lib-int.rs using _str.eq for now.
1 parent ca3ca04 commit 14262c7

File tree

6 files changed

+19
-20
lines changed

6 files changed

+19
-20
lines changed

src/Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,6 @@ TEST_XFAILS_X86 := $(TASK_XFAILS) \
406406
test/run-pass/fn-lval.rs \
407407
test/run-pass/generic-fn-infer.rs \
408408
test/run-pass/generic-recursive-tag.rs \
409-
test/run-pass/int-lib.rs \
410409
test/run-pass/iter-ret.rs \
411410
test/run-pass/lib-io.rs \
412411
test/run-pass/lib-map.rs \
@@ -475,17 +474,20 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \
475474
i8-incr.rs \
476475
import.rs \
477476
integral-indexing.rs \
478-
int-lib.rs \
479477
iter-range.rs \
480478
iter-ret.rs \
481479
large-records.rs \
482480
lazy-and-or.rs \
483481
lazy-init.rs \
484482
lazychan.rs \
485483
lib-deque.rs \
484+
lib-int.rs \
486485
lib-io.rs \
487486
lib-map.rs \
488487
lib-rand.rs \
488+
lib-str.rs \
489+
lib-task.rs \
490+
lib-vec.rs \
489491
lib-vec-str-conversions.rs \
490492
linear-for-loop.rs \
491493
list.rs \
@@ -519,8 +521,6 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \
519521
str-append.rs \
520522
str-concat.rs \
521523
str-idx.rs \
522-
str-lib.rs \
523-
task-lib.rs \
524524
tag.rs \
525525
tail-cps.rs \
526526
tail-direct.rs \
@@ -554,7 +554,6 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \
554554
vec-drop.rs \
555555
vec-in-tup.rs \
556556
vec-late-init.rs \
557-
vec-lib.rs \
558557
vec-slice.rs \
559558
vec.rs \
560559
while-flow-graph.rs \

src/test/run-pass/int-lib.rs

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/test/run-pass/lib-int.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
use std;
2+
3+
import std._int;
4+
import std._str.eq;
5+
6+
fn test_to_str() {
7+
check (eq(_int.to_str(0, 10u), "0"));
8+
check (eq(_int.to_str(1, 10u), "1"));
9+
check (eq(_int.to_str(-1, 10u), "-1"));
10+
check (eq(_int.to_str(255, 16u), "ff"));
11+
}
12+
13+
fn main() {
14+
test_to_str();
15+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)