summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/Tests/TestLexer.h
blob: eabe9071552ee289472fad9d1bf9fa843797363f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * TestLexer.h
 *
 *  Created on: Nov 4, 2012
 *      Author: attero
 */

#ifndef TESTLEXER_H_
#define TESTLEXER_H_
#include "TestSuite.h"
#include "../Lexer.h"
/**
 * TextLexer uses small test framework (TestSuite)
 * to test some methods of Lexer class.
 */
class TestLexer : public TestSuite {
public:
	TestLexer();
	virtual ~TestLexer();

	virtual std::string all_tests();
private:
	Lexer lexer;
	std::string test_searching_keyword_for_not_keyword();
	std::string test_searching_keyword();
	std::string test_parsing_simple_token();
	std::string test_parsing_tricky_token();
};

#endif /* TESTLEXER_H_ */