2012-04-11 23:45:18 -05:00
|
|
|
fn main() {
|
2012-06-29 18:26:56 -05:00
|
|
|
assert []/_.contains(22u) == false;
|
|
|
|
assert [1u, 3u]/_.contains(22u) == false;
|
|
|
|
assert [22u, 1u, 3u]/_.contains(22u) == true;
|
|
|
|
assert [1u, 22u, 3u]/_.contains(22u) == true;
|
|
|
|
assert [1u, 3u, 22u]/_.contains(22u) == true;
|
2012-08-20 14:23:37 -05:00
|
|
|
assert None.contains(22u) == false;
|
|
|
|
assert Some(1u).contains(22u) == false;
|
|
|
|
assert Some(22u).contains(22u) == true;
|
2012-06-29 18:26:56 -05:00
|
|
|
}
|