Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/containers/flat_set.h" | 5 #include "base/containers/flat_set.h" |
| 6 | 6 |
| 7 // Following tests are ported and extended tests from libcpp for std::set. | 7 // Following tests are ported and extended tests from libcpp for std::set. |
| 8 // They can be found here: | 8 // They can be found here: |
| 9 // https://github.com/llvm-mirror/libcxx/tree/master/test/std/containers/associa tive/set | 9 // https://github.com/llvm-mirror/libcxx/tree/master/test/std/containers/associa tive/set |
| 10 // | 10 // |
| (...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1235 | 1235 |
| 1236 EXPECT_EQ(biggest, biggest); | 1236 EXPECT_EQ(biggest, biggest); |
| 1237 EXPECT_NE(biggest, smallest); | 1237 EXPECT_NE(biggest, smallest); |
| 1238 EXPECT_LT(smallest, middle); | 1238 EXPECT_LT(smallest, middle); |
| 1239 EXPECT_LE(smallest, middle); | 1239 EXPECT_LE(smallest, middle); |
| 1240 EXPECT_LE(middle, middle); | 1240 EXPECT_LE(middle, middle); |
| 1241 EXPECT_GT(biggest, middle); | 1241 EXPECT_GT(biggest, middle); |
| 1242 EXPECT_GE(biggest, middle); | 1242 EXPECT_GE(biggest, middle); |
| 1243 EXPECT_GE(biggest, biggest); | 1243 EXPECT_GE(biggest, biggest); |
| 1244 } | 1244 } |
| 1245 | |
| 1246 // STLEraseIf(FlatSet) is tested in stl_util_unittests.cc | |
|
danakj
2017/03/03 23:51:22
remove this, throw a test here if you like?
dyaroshev
2017/03/04 00:32:49
Done.
| |
| OLD | NEW |