2023-05-28 12:45:42 +08:00

13 lines
244 B
C++

#include "2d.hpp"
#include "test/u.hpp"
#include <functional>
namespace {
AddTestCase _("2d.hpp", [](TestCase &t) {
t.expectEq<Float>([]{ return cross({1, 2}, {4, 1}); }, -7);
t.expectEq<Float>([]{ return dot({1, 2}, {4, 1}); }, 6);
});
}