summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/Tests/TestParser.h
diff options
context:
space:
mode:
Diffstat (limited to 'Sencha-lang/Tests/TestParser.h')
-rw-r--r--Sencha-lang/Tests/TestParser.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/Sencha-lang/Tests/TestParser.h b/Sencha-lang/Tests/TestParser.h
index a2a4843..ac4f119 100644
--- a/Sencha-lang/Tests/TestParser.h
+++ b/Sencha-lang/Tests/TestParser.h
@@ -16,24 +16,29 @@
#include <vector>
-
+/**
+ * TestParser is test suite for testing parser.
+ * It checks if parser works correctly.
+ * Features checked: defining and calling functions, array access, changing letters in strings and so on.
+ */
class TestParser: public TestSuite {
public:
TestParser();
virtual ~TestParser();
typedef std::pair<std::string, bool> InputOutputPair;
typedef std::pair<std::string, SenchaObject> SInputOutputPair;
+
private:
+ //Actual tests
std::string test_parsing_and_evaluating_logical_expressions();
std::string test_adding_new_function();
std::string test_calling_funtion();
- std::string prepare_some_function_declarations();
std::string test_writing_and_accessing_array_elements();
std::string test_changing_letters_in_string();
std::vector<InputOutputPair> prepare_logical_input();
-
+ std::string prepare_some_function_declarations();
virtual std::string all_tests();
};