A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A first version of the xbt/random module
[simgrid.git]
/
src
/
xbt
/
xbt_str_test.cpp
diff --git
a/src/xbt/xbt_str_test.cpp
b/src/xbt/xbt_str_test.cpp
index
48fe51b
..
e1e7600
100644
(file)
--- a/
src/xbt/xbt_str_test.cpp
+++ b/
src/xbt/xbt_str_test.cpp
@@
-29,9
+29,7
@@
void test_split_quoted(const std::string& name, const char* input, const std::ve
template <typename F> void test_parse_error(F function, const std::string& name, const char* str)
{
INFO(name);
template <typename F> void test_parse_error(F function, const std::string& name, const char* str)
{
INFO(name);
- REQUIRE_THROWS_MATCHES(function(str, "Parse error"), xbt_ex,
- Catch::Matchers::Predicate<xbt_ex>([](xbt_ex const& e) { return e.category == arg_error; },
- "category arg_error"));
+ REQUIRE_THROWS_AS(function(str, "Parse error"), std::invalid_argument);
}
template <typename F, typename T> void test_parse_ok(F function, const std::string& name, const char* str, T value)
}
template <typename F, typename T> void test_parse_ok(F function, const std::string& name, const char* str, T value)