13 lines
298 B
C++
13 lines
298 B
C++
#include "test/u.hpp"
|
|
|
|
namespace {
|
|
|
|
AddTestCase _("tester", [](TestCase &t) {
|
|
t.expectTrue([]{ return true; });
|
|
t.expectFalse([]{ return false; });
|
|
t.expectEq<int>([]{ return 42; }, 42);
|
|
t.expectEq<float>([] { return 10 + 1e-7; }, 10);
|
|
t.expectEq<double>([] { return 10 + 1e-10; }, 10);
|
|
});
|
|
|
|
} |