2023-05-27 15:00:55 +08:00

13 lines
240 B
C++

#include "2d.hpp"
#include "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);
});
}