todo and some other stuff

This commit is contained in:
Barrett Ruth 2025-08-30 18:54:04 -05:00
parent 12693fc20f
commit 6f5ed47f3f
3 changed files with 29 additions and 38 deletions

23
tests/test_compilation.cc Normal file
View file

@ -0,0 +1,23 @@
#include <cassert>
#include <cstdint>
#include <iostream>
#include "../include/bmath.hh"
using namespace bmath;
using namespace std;
int main() {
mint<uint64_t> four{4};
// should be trivially copyable
static_assert(is_trivially_copyable_v<mint<uint64_t>>);
// should be able to format
auto formatted = format("{}\n", four);
// and use to_string
formatted = to_string(four);
return 0;
}