-/* Copyright (c) 2004-2019. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2004-2020. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
int ival = simgrid::config::get_value<int>("speed");
REQUIRE(ival == 42); // Unexpected value for speed
- INFO("Access to a non-existant entry");
+ INFO("Access to a non-existent entry");
- REQUIRE_THROWS_MATCHES(
- simgrid::config::set_parse("color:blue"), xbt_ex,
- Catch::Matchers::Predicate<xbt_ex>([](xbt_ex const& e) { return e.category == not_found_error; },
- "category not_found_error"));
+ REQUIRE_THROWS_AS(simgrid::config::set_parse("color:blue"), std::out_of_range);
simgrid::config::finalize();
simgrid_config = temp;