Skip to content

Commit

Permalink
update submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
loliGothicK committed Jul 17, 2019
1 parent 4a04f17 commit d91bb80
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion catch2
Submodule catch2 updated 132 files
10 changes: 5 additions & 5 deletions tests/basic-tests/basic-tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ TEMPLATE_TEST_CASE("validates",
"[quantity][validate]",
second_t, meter_t, ampere_t, candela_t, kelvin_t, kilogram_t, mol_t)
{
auto validator = [](auto v) -> mitama::Result<quantity_t<TestType, int>, int> {
auto validator = [](auto v) -> mitama::result<quantity_t<TestType, int>, int> {
if (v.value() < 0)
return mitama::Err(v.value());
return mitama::failure(v.value());
else
return mitama::Ok(v);
return mitama::success(v);
};

REQUIRE( (1|TestType{}).validate(validator) == Ok(1|TestType{}) );
REQUIRE( (-1|TestType{}).validate(validator) == Err(-1) );
REQUIRE( (1|TestType{}).validate(validator) == mitama::success(1|TestType{}) );
REQUIRE( (-1|TestType{}).validate(validator) == mitama::failure(-1) );
}

#include <mitama/dimensional/systems/si/quantity.hpp>
Expand Down
2 changes: 1 addition & 1 deletion tests/test_include/test_util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <utility>
#include <tuple>
#include <random>
#include <mitama/result/Result.hpp>
#include <mitama/result/result.hpp>

#define IS_INVALID_EXPR(...) \
IS_INVALID_EXPR_IMPL1(__VA_ARGS__) \
Expand Down

0 comments on commit d91bb80

Please sign in to comment.