Skip to content

Commit 0743cec

Browse files
committed
core: Remove structural records in library tests
1 parent 6d4907a commit 0743cec

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/libcore/repr.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,9 @@ pub fn write_repr<T>(writer: @Writer, object: &T) {
569569
}
570570
}
571571

572+
#[test]
573+
struct P {a: int, b: float}
574+
572575
#[test]
573576
fn test_repr() {
574577

@@ -609,11 +612,11 @@ fn test_repr() {
609612
"~[\"hi\", \"there\"]");
610613
exact_test(&(&["hi", "there"]),
611614
"&[\"hi\", \"there\"]");
612-
exact_test(&({a:10, b:1.234}),
615+
exact_test(&(P{a:10, b:1.234}),
613616
"{a: 10, b: 1.2340}");
614-
exact_test(&(@{a:10, b:1.234}),
617+
exact_test(&(@P{a:10, b:1.234}),
615618
"@{a: 10, b: 1.2340}");
616-
exact_test(&(~{a:10, b:1.234}),
619+
exact_test(&(~P{a:10, b:1.234}),
617620
"~{a: 10, b: 1.2340}");
618621
exact_test(&(10_u8, ~"hello"),
619622
"(10, ~\"hello\")");

0 commit comments

Comments
 (0)