Commit 4808d322 by Aaron Leung

Unit testing the new node stuff. This file is gonna' go away.

parent d9d5c3f4
......@@ -12,7 +12,24 @@ int main()
using namespace std;
cout << sizeof(Node) << endl;
cout << sizeof(Node_Impl) << endl;
cout << sizeof(Node_Impl) << endl << endl;
Node_Factory make = Node_Factory();
Node interior(make.node(block, 0, 0, 3));
cout << interior.size() << endl;
cout << interior.has_children() << endl;
cout << interior.eval_me() << endl << endl;
Node num(make.node(0, 0, 255, 123, 32));
cout << num.size() << endl;
cout << num.has_children() << endl;
cout << num.has_statements() << endl << endl;
cout << num[1].is_numeric() << endl;
cout << num[1].numeric_value() << endl << endl;
return 0;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment