2012-04-11 21:45:18 -07:00
|
|
|
fn main() {
|
2012-06-25 20:00:46 -07: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-04-11 21:45:18 -07:00
|
|
|
assert none.contains(22u) == false;
|
|
|
|
assert some(1u).contains(22u) == false;
|
|
|
|
assert some(22u).contains(22u) == true;
|
|
|
|
}
|