rust/src/test/run-pass/assert-eq-macro-success.rs

11 lines
238 B
Rust
Raw Normal View History

#[deriving_eq]
struct Point { x : int }
fn main() {
assert_eq!(14,14);
assert_eq!(~"abc",~"abc");
assert_eq!(~Point{x:34},~Point{x:34});
assert_eq!(&Point{x:34},&Point{x:34});
assert_eq!(@Point{x:34},@Point{x:34});
}