Fixed test
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
struct Point {
|
||||
Int x,
|
||||
Int y,
|
||||
i32 x,
|
||||
i32 y,
|
||||
}
|
||||
|
||||
pub void test_struct_create_access() {
|
||||
@@ -22,12 +22,12 @@ pub void test_struct_destructure() {
|
||||
assert_eq!(y, 4);
|
||||
}
|
||||
|
||||
pub void test_struct_nested() {
|
||||
struct Line {
|
||||
Point start,
|
||||
Point end,
|
||||
}
|
||||
struct Line {
|
||||
Point start,
|
||||
Point end,
|
||||
}
|
||||
|
||||
pub void test_struct_nested() {
|
||||
let l = Line {
|
||||
start: Point { x: 0, y: 0 },
|
||||
end: Point { x: 5, y: 10 },
|
||||
|
||||
Reference in New Issue
Block a user