about summary refs log tree commit diff
path: root/src/test/run-pass/tuple-struct-constructor-pointer.rs
diff options
context:
space:
mode:
authorAndreas Martens <andreasm@fastmail.fm>2013-08-18 21:37:40 +0200
committerAndreas Martens <andreasm@fastmail.fm>2013-08-18 21:37:40 +0200
commit29ab2daa5efebb59b5ad4a2710d570e89696e583 (patch)
treeb668210ed014b6edda819720d8ecdbfe1634a69b /src/test/run-pass/tuple-struct-constructor-pointer.rs
parentc4b4cb36c83f1fe581dc9d20c25baa2d2ed23e42 (diff)
downloadrust-29ab2daa5efebb59b5ad4a2710d570e89696e583.tar.gz
rust-29ab2daa5efebb59b5ad4a2710d570e89696e583.zip
Add assertions to test
Diffstat (limited to 'src/test/run-pass/tuple-struct-constructor-pointer.rs')
-rw-r--r--src/test/run-pass/tuple-struct-constructor-pointer.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/run-pass/tuple-struct-constructor-pointer.rs b/src/test/run-pass/tuple-struct-constructor-pointer.rs
index ad2acc4ad4f..dbb5db649ef 100644
--- a/src/test/run-pass/tuple-struct-constructor-pointer.rs
+++ b/src/test/run-pass/tuple-struct-constructor-pointer.rs
@@ -8,12 +8,14 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[deriving(Eq)]
 struct Foo(int);
+#[deriving(Eq)]
 struct Bar(int, int);
 
 fn main() {
     let f: extern fn(int) -> Foo = Foo;
     let g: extern fn(int, int) -> Bar = Bar;
-    f(42);
-    g(4, 7);
+    assert_eq!(f(42), Foo(42));
+    assert_eq!(g(4, 7), Bar(4, 7));
 }