summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/Tests/TestASTInspector.h
diff options
context:
space:
mode:
Diffstat (limited to 'Sencha-lang/Tests/TestASTInspector.h')
-rw-r--r--Sencha-lang/Tests/TestASTInspector.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/Sencha-lang/Tests/TestASTInspector.h b/Sencha-lang/Tests/TestASTInspector.h
index 4720cc1..61bb2bb 100644
--- a/Sencha-lang/Tests/TestASTInspector.h
+++ b/Sencha-lang/Tests/TestASTInspector.h
@@ -13,18 +13,22 @@
#include "../AST/BasicExpression.h"
#include "../AST/ConstantExpression.h"
-
+/**
+ * TestASTInspector checks some basic features of ASTInspector.
+ */
class TestASTInspector: public TestSuite {
public:
TestASTInspector();
virtual ~TestASTInspector();
-
- std::string test_inspecting_basic_expression();
- std::string test_inspecting_simple_AST();
virtual std::string all_tests();
private:
+ //tests
+ std::string test_inspecting_basic_expression();
+ std::string test_inspecting_simple_AST();
+ //helper functions
BasicExpression * build_basic_expression(std::string oper, SenchaObject arg1, SenchaObject arg2);
BasicExpression * build_simple_AST(std::string oper, BasicExpression * left, BasicExpression * right);
+ //instance of ASTInspector
ASTInspector inspector;
};