summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/Tests/TestLexer.h
blob: 02876cb9704a55187dd6d6d2daad3ba479287dd0 (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
31
/*
 * 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();
	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();

	virtual std::string all_tests();
	std::string test_fake();
private:
	Lexer lexer;
};

#endif /* TESTLEXER_H_ */