#include <@name@/@name@.h>
namespace @ident@ {
int add(int a, int b) { return a + b; }
} // namespace @ident@
// Tests sit beside the code they check, and are compiled only by
// `cuno test`, which defines CUNO_TEST. Each name is written in full, so no
// package name can collide with cuno's own.
#ifdef CUNO_TEST
#include <cuno/test.hpp>
static cuno::test::suite tests = [] {
cuno::test::test("add adds", [] {
cuno::test::expect(cuno::test::eq(@ident@::add(1, 2), 3));
cuno::test::expect(cuno::test::eq(@ident@::add(-1, 1), 0));
});
};
#endif