core: Remove structural records in library tests
This commit is contained in:
parent
6d4907a742
commit
0743cec023
1 changed files with 6 additions and 3 deletions
|
|
@ -569,6 +569,9 @@ pub fn write_repr<T>(writer: @Writer, object: &T) {
|
|||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
struct P {a: int, b: float}
|
||||
|
||||
#[test]
|
||||
fn test_repr() {
|
||||
|
||||
|
|
@ -609,11 +612,11 @@ fn test_repr() {
|
|||
"~[\"hi\", \"there\"]");
|
||||
exact_test(&(&["hi", "there"]),
|
||||
"&[\"hi\", \"there\"]");
|
||||
exact_test(&({a:10, b:1.234}),
|
||||
exact_test(&(P{a:10, b:1.234}),
|
||||
"{a: 10, b: 1.2340}");
|
||||
exact_test(&(@{a:10, b:1.234}),
|
||||
exact_test(&(@P{a:10, b:1.234}),
|
||||
"@{a: 10, b: 1.2340}");
|
||||
exact_test(&(~{a:10, b:1.234}),
|
||||
exact_test(&(~P{a:10, b:1.234}),
|
||||
"~{a: 10, b: 1.2340}");
|
||||
exact_test(&(10_u8, ~"hello"),
|
||||
"(10, ~\"hello\")");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue