summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/atom_test.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/test/atom_test.cpp b/test/atom_test.cpp
index 66bc79e..c36f726 100644
--- a/test/atom_test.cpp
+++ b/test/atom_test.cpp
@@ -6,15 +6,17 @@ using namespace Raul;
int
main()
{
- static const size_t buf_size = 9;
- char buf[buf_size] = "atomtest";
+ //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);
+ Forge forge;
+
+ Atom nil_atom = forge.make();
+ Atom int_atom = forge.make(42);
+ Atom float_atom = forge.make(42.0f);
+ Atom bool_atom = forge.make(true);
+ Atom string_atom = forge.alloc("hello");
+ //Atom blob_atom = forge.alloc("http://example.org/atomtype", buf_size, buf);
return 0;
}