Files
scylladb/tests/mutation_assertions.hh
Avi Kivity c720cddc5c tests: mv tests/urchin/* -> tests/
Now that seastar is in a separate repository, we can use the tests/
directory.
2015-08-05 14:16:52 +03:00

27 lines
479 B
C++

/*
* Copyright 2015 Cloudius Systems
*/
#pragma once
#include "mutation.hh"
class mutation_assertion {
const mutation& _m;
public:
mutation_assertion(const mutation& m)
: _m(m)
{ }
void is_equal_to(const mutation& other) {
if (_m != other) {
BOOST_FAIL(sprint("Mutations differ, expected %s\n ...but got: %s", other, _m));
}
}
};
static inline
mutation_assertion assert_that(const mutation& m) {
return { m };
}