Skip to content

Commit e7862dd

Browse files
committed
---
yaml --- r: 183486 b: refs/heads/beta c: ba2efe9 h: refs/heads/master v: v3
1 parent c7b033b commit e7862dd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1187
-740
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 6cc3b00d3f7b1e7512d85830bf62f2acc461237d
34+
refs/heads/beta: ba2efe96aeada34c1e2dc267a1a35948bdda91f8
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: eb836bf767aa1d8d4cba488a9091cde3c0ab4b2f

branches/beta/src/libcoretest/any.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ static TEST: &'static str = "Test";
1818

1919
#[test]
2020
fn any_referenced() {
21-
let (a, b, c) = (&5u as &Any, &TEST as &Any, &Test as &Any);
21+
let (a, b, c) = (&5 as &Any, &TEST as &Any, &Test as &Any);
2222

23-
assert!(a.is::<uint>());
24-
assert!(!b.is::<uint>());
25-
assert!(!c.is::<uint>());
23+
assert!(a.is::<i32>());
24+
assert!(!b.is::<i32>());
25+
assert!(!c.is::<i32>());
2626

2727
assert!(!a.is::<&'static str>());
2828
assert!(b.is::<&'static str>());
@@ -35,7 +35,7 @@ fn any_referenced() {
3535

3636
#[test]
3737
fn any_owning() {
38-
let (a, b, c) = (box 5u as Box<Any>, box TEST as Box<Any>, box Test as Box<Any>);
38+
let (a, b, c) = (box 5us as Box<Any>, box TEST as Box<Any>, box Test as Box<Any>);
3939

4040
assert!(a.is::<uint>());
4141
assert!(!b.is::<uint>());
@@ -52,7 +52,7 @@ fn any_owning() {
5252

5353
#[test]
5454
fn any_downcast_ref() {
55-
let a = &5u as &Any;
55+
let a = &5us as &Any;
5656

5757
match a.downcast_ref::<uint>() {
5858
Some(&5) => {}
@@ -67,24 +67,24 @@ fn any_downcast_ref() {
6767

6868
#[test]
6969
fn any_downcast_mut() {
70-
let mut a = 5u;
71-
let mut b = box 7u;
70+
let mut a = 5us;
71+
let mut b = box 7us;
7272

7373
let a_r = &mut a as &mut Any;
7474
let tmp: &mut uint = &mut *b;
7575
let b_r = tmp as &mut Any;
7676

7777
match a_r.downcast_mut::<uint>() {
7878
Some(x) => {
79-
assert_eq!(*x, 5u);
79+
assert_eq!(*x, 5);
8080
*x = 612;
8181
}
8282
x => panic!("Unexpected value {:?}", x)
8383
}
8484

8585
match b_r.downcast_mut::<uint>() {
8686
Some(x) => {
87-
assert_eq!(*x, 7u);
87+
assert_eq!(*x, 7);
8888
*x = 413;
8989
}
9090
x => panic!("Unexpected value {:?}", x)
@@ -113,7 +113,7 @@ fn any_downcast_mut() {
113113

114114
#[test]
115115
fn any_fixed_vec() {
116-
let test = [0u; 8];
116+
let test = [0us; 8];
117117
let test = &test as &Any;
118118
assert!(test.is::<[uint; 8]>());
119119
assert!(!test.is::<[uint; 10]>());

branches/beta/src/libcoretest/cell.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -134,21 +134,21 @@ fn clone_ref_updates_flag() {
134134

135135
#[test]
136136
fn as_unsafe_cell() {
137-
let c1: Cell<uint> = Cell::new(0u);
138-
c1.set(1u);
139-
assert_eq!(1u, unsafe { *c1.as_unsafe_cell().get() });
137+
let c1: Cell<uint> = Cell::new(0);
138+
c1.set(1);
139+
assert_eq!(1, unsafe { *c1.as_unsafe_cell().get() });
140140

141-
let c2: Cell<uint> = Cell::new(0u);
142-
unsafe { *c2.as_unsafe_cell().get() = 1u; }
143-
assert_eq!(1u, c2.get());
141+
let c2: Cell<uint> = Cell::new(0);
142+
unsafe { *c2.as_unsafe_cell().get() = 1; }
143+
assert_eq!(1, c2.get());
144144

145-
let r1: RefCell<uint> = RefCell::new(0u);
146-
*r1.borrow_mut() = 1u;
147-
assert_eq!(1u, unsafe { *r1.as_unsafe_cell().get() });
145+
let r1: RefCell<uint> = RefCell::new(0);
146+
*r1.borrow_mut() = 1;
147+
assert_eq!(1, unsafe { *r1.as_unsafe_cell().get() });
148148

149-
let r2: RefCell<uint> = RefCell::new(0u);
150-
unsafe { *r2.as_unsafe_cell().get() = 1u; }
151-
assert_eq!(1u, *r2.borrow());
149+
let r2: RefCell<uint> = RefCell::new(0);
150+
unsafe { *r2.as_unsafe_cell().get() = 1; }
151+
assert_eq!(1, *r2.borrow());
152152
}
153153

154154
#[test]

branches/beta/src/libcoretest/char.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ fn test_is_whitespace() {
4141

4242
#[test]
4343
fn test_to_digit() {
44-
assert_eq!('0'.to_digit(10u), Some(0u));
45-
assert_eq!('1'.to_digit(2u), Some(1u));
46-
assert_eq!('2'.to_digit(3u), Some(2u));
47-
assert_eq!('9'.to_digit(10u), Some(9u));
48-
assert_eq!('a'.to_digit(16u), Some(10u));
49-
assert_eq!('A'.to_digit(16u), Some(10u));
50-
assert_eq!('b'.to_digit(16u), Some(11u));
51-
assert_eq!('B'.to_digit(16u), Some(11u));
52-
assert_eq!('z'.to_digit(36u), Some(35u));
53-
assert_eq!('Z'.to_digit(36u), Some(35u));
54-
assert_eq!(' '.to_digit(10u), None);
55-
assert_eq!('$'.to_digit(36u), None);
44+
assert_eq!('0'.to_digit(10), Some(0));
45+
assert_eq!('1'.to_digit(2), Some(1));
46+
assert_eq!('2'.to_digit(3), Some(2));
47+
assert_eq!('9'.to_digit(10), Some(9));
48+
assert_eq!('a'.to_digit(16), Some(10));
49+
assert_eq!('A'.to_digit(16), Some(10));
50+
assert_eq!('b'.to_digit(16), Some(11));
51+
assert_eq!('B'.to_digit(16), Some(11));
52+
assert_eq!('z'.to_digit(36), Some(35));
53+
assert_eq!('Z'.to_digit(36), Some(35));
54+
assert_eq!(' '.to_digit(10), None);
55+
assert_eq!('$'.to_digit(36), None);
5656
}
5757

5858
#[test]

0 commit comments

Comments
 (0)