| File tests/Config.cpp changed (mode: 100644) (index d874cac..af65dca) |
| ... |
... |
TEST_CASE("Loading file of wrong format throws exception", "[config]") |
| 92 |
92 |
Config child("tests/main.cpp"); |
Config child("tests/main.cpp"); |
| 93 |
93 |
|
|
| 94 |
94 |
namespace pt = boost::property_tree; |
namespace pt = boost::property_tree; |
| 95 |
|
REQUIRE_THROWS_AS(child.get("key", "v") == "value", |
|
| 96 |
|
const pt::info_parser_error &); |
|
|
95 |
|
REQUIRE_THROWS_AS(child.get("key", "v"), const pt::info_parser_error &); |
| 97 |
96 |
} |
} |
| File tests/IdGenerator.cpp changed (mode: 100644) (index 4a0add0..5bfc0ab) |
| ... |
... |
TEST_CASE("All IDs are distinct", "[ids]") |
| 93 |
93 |
} |
} |
| 94 |
94 |
|
|
| 95 |
95 |
std::sort(ids.begin(), ids.end()); |
std::sort(ids.begin(), ids.end()); |
| 96 |
|
std::unique(ids.begin(), ids.end()); |
|
|
96 |
|
ids.erase(std::unique(ids.begin(), ids.end()), ids.end()); |
| 97 |
97 |
|
|
| 98 |
98 |
REQUIRE(ids.size() == 10*10*10*10*10); |
REQUIRE(ids.size() == 10*10*10*10*10); |
| 99 |
99 |
} |
} |