We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c721bd commit ab53819Copy full SHA for ab53819
src/libstd/test.rs
@@ -5,6 +5,7 @@
5
// simplest interface possible for representing and running tests
6
// while providing a base that other test frameworks may build off of.
7
8
+import core::cmp::Eq;
9
import either::Either;
10
import result::{Ok, Err};
11
import io::WriterUtil;
@@ -91,6 +92,12 @@ fn parse_opts(args: ~[~str]) -> opt_res {
91
92
93
enum test_result { tr_ok, tr_failed, tr_ignored, }
94
95
+impl test_result : Eq {
96
+ pure fn eq(&&other: test_result) -> bool {
97
+ (self as uint) == (other as uint)
98
+ }
99
+}
100
+
101
type console_test_state =
102
@{out: io::Writer,
103
log_out: Option<io::Writer>,
0 commit comments