File tree Expand file tree Collapse file tree 6 files changed +19
-20
lines changed Expand file tree Collapse file tree 6 files changed +19
-20
lines changed Original file line number Diff line number Diff line change @@ -406,7 +406,6 @@ TEST_XFAILS_X86 := $(TASK_XFAILS) \
406
406
test/run-pass/fn-lval.rs \
407
407
test/run-pass/generic-fn-infer.rs \
408
408
test/run-pass/generic-recursive-tag.rs \
409
- test/run-pass/int-lib.rs \
410
409
test/run-pass/iter-ret.rs \
411
410
test/run-pass/lib-io.rs \
412
411
test/run-pass/lib-map.rs \
@@ -475,17 +474,20 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \
475
474
i8-incr.rs \
476
475
import.rs \
477
476
integral-indexing.rs \
478
- int-lib.rs \
479
477
iter-range.rs \
480
478
iter-ret.rs \
481
479
large-records.rs \
482
480
lazy-and-or.rs \
483
481
lazy-init.rs \
484
482
lazychan.rs \
485
483
lib-deque.rs \
484
+ lib-int.rs \
486
485
lib-io.rs \
487
486
lib-map.rs \
488
487
lib-rand.rs \
488
+ lib-str.rs \
489
+ lib-task.rs \
490
+ lib-vec.rs \
489
491
lib-vec-str-conversions.rs \
490
492
linear-for-loop.rs \
491
493
list.rs \
@@ -519,8 +521,6 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \
519
521
str-append.rs \
520
522
str-concat.rs \
521
523
str-idx.rs \
522
- str-lib.rs \
523
- task-lib.rs \
524
524
tag.rs \
525
525
tail-cps.rs \
526
526
tail-direct.rs \
@@ -554,7 +554,6 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \
554
554
vec-drop.rs \
555
555
vec-in-tup.rs \
556
556
vec-late-init.rs \
557
- vec-lib.rs \
558
557
vec-slice.rs \
559
558
vec.rs \
560
559
while-flow-graph.rs \
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
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 , 10 u) , "0" ) ) ;
8
+ check ( eq ( _int. to_str ( 1 , 10 u) , "1" ) ) ;
9
+ check ( eq ( _int. to_str ( -1 , 10 u) , "-1" ) ) ;
10
+ check ( eq ( _int. to_str ( 255 , 16 u) , "ff" ) ) ;
11
+ }
12
+
13
+ fn main ( ) {
14
+ test_to_str ( ) ;
15
+ }
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments