| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/assert.h" | 5 #include "platform/assert.h" |
| 6 #include "vm/bit_vector.h" | 6 #include "vm/bit_vector.h" |
| 7 #include "vm/unit_test.h" | 7 #include "vm/unit_test.h" |
| 8 | 8 |
| 9 namespace dart { | 9 namespace dart { |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 EXPECT_EQ(false, a->Contains(127)); | 67 EXPECT_EQ(false, a->Contains(127)); |
| 68 b->Add(96); | 68 b->Add(96); |
| 69 b->Add(127); | 69 b->Add(127); |
| 70 c->Add(127); | 70 c->Add(127); |
| 71 a->KillAndAdd(c, b); | 71 a->KillAndAdd(c, b); |
| 72 EXPECT_EQ(true, a->Contains(0)); | 72 EXPECT_EQ(true, a->Contains(0)); |
| 73 EXPECT_EQ(true, a->Contains(32)); | 73 EXPECT_EQ(true, a->Contains(32)); |
| 74 EXPECT_EQ(true, a->Contains(64)); | 74 EXPECT_EQ(true, a->Contains(64)); |
| 75 EXPECT_EQ(true, a->Contains(96)); | 75 EXPECT_EQ(true, a->Contains(96)); |
| 76 EXPECT_EQ(false, a->Contains(127)); | 76 EXPECT_EQ(false, a->Contains(127)); |
| 77 a->Remove(0); |
| 78 a->Remove(32); |
| 79 a->Remove(64); |
| 80 a->Remove(96); |
| 81 EXPECT_EQ(false, a->Contains(0)); |
| 82 EXPECT_EQ(false, a->Contains(32)); |
| 83 EXPECT_EQ(false, a->Contains(64)); |
| 84 EXPECT_EQ(false, a->Contains(96)); |
| 77 } | 85 } |
| 78 } | 86 } |
| 79 | 87 |
| 80 } // namespace dart | 88 } // namespace dart |
| OLD | NEW |