todo and some other stuff
This commit is contained in:
parent
12693fc20f
commit
6f5ed47f3f
3 changed files with 29 additions and 38 deletions
23
tests/test_compilation.cc
Normal file
23
tests/test_compilation.cc
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue