diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/atom_test.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/atom_test.cpp b/test/atom_test.cpp new file mode 100644 index 0000000..5174600 --- /dev/null +++ b/test/atom_test.cpp @@ -0,0 +1,22 @@ +#include "raul/Atom.hpp" + +using namespace std; +using namespace Raul; + +int +main() +{ + static const size_t buf_size = 9; + char buf[buf_size] = "atomtest"; + + + Atom nil_atom(); + Atom int_atom(42); + Atom float_atom(42.0f); + Atom bool_atom(true); + Atom string_atom("hello"); + Atom blob_atom("http://example.org/atomtype", buf_size, buf); + + return 0; +} + |