|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Compiler_Lexer.H. More...
Go to the source code of this file.
Functions | |
| TEST (CompilerLexer, LexesKeywordsIdentifiersNumbersAndSpans) | |
| TEST (CompilerLexer, LexesNominalTypeDeclarationKeywords) | |
| TEST (CompilerLexer, PeekDoesNotConsumeTheNextToken) | |
| TEST (CompilerLexer, SkipsCommentsByDefault) | |
| TEST (CompilerLexer, KeepsCommentTokensWhenRequested) | |
| TEST (CompilerLexer, CanDisableBlockCommentLexing) | |
| TEST (CompilerLexer, LexesStringsCharsAndCompoundOperators) | |
| TEST (CompilerLexer, UnexpectedCharacterProducesInvalidTokenAndDiagnostic) | |
| TEST (CompilerLexer, UnterminatedStringProducesInvalidTokenAndDiagnostic) | |
| TEST (CompilerLexer, UnterminatedBlockCommentIsNotSilentlyDropped) | |
| TEST (CompilerLexer, MalformedCharacterLiteralProducesInvalidToken) | |
| TEST (CompilerLexer, EmptyInputReturnsEOFImmediately) | |
| TEST (CompilerLexer, PublicAPIContract) | |
Tests for Compiler_Lexer.H.
Definition in file compiler_lexer_test.cc.
| TEST | ( | CompilerLexer | , |
| CanDisableBlockCommentLexing | |||
| ) |
Definition at line 214 of file compiler_lexer_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::Compiler_Lexer_Options::allow_block_comments, and Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | CompilerLexer | , |
| EmptyInputReturnsEOFImmediately | |||
| ) |
Definition at line 332 of file compiler_lexer_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::blossom_maximum_cardinality_matching(), Aleph::Compiler_Lexer::eof(), and Aleph::Compiler_Lexer::next().
| TEST | ( | CompilerLexer | , |
| KeepsCommentTokensWhenRequested | |||
| ) |
Definition at line 194 of file compiler_lexer_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::blossom_maximum_cardinality_matching(), Aleph::Compiler_Lexer_Options::keep_comments, and Aleph::Compiler_Lexer::next().
| TEST | ( | CompilerLexer | , |
| LexesKeywordsIdentifiersNumbersAndSpans | |||
| ) |
Definition at line 64 of file compiler_lexer_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::blossom_maximum_cardinality_matching(), Aleph::Diagnostic_Engine::has_errors(), and Aleph::Compiler_Lexer::next().
| TEST | ( | CompilerLexer | , |
| LexesNominalTypeDeclarationKeywords | |||
| ) |
Definition at line 116 of file compiler_lexer_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::blossom_maximum_cardinality_matching(), and Aleph::Compiler_Lexer::next().
| TEST | ( | CompilerLexer | , |
| LexesStringsCharsAndCompoundOperators | |||
| ) |
Definition at line 236 of file compiler_lexer_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::blossom_maximum_cardinality_matching(), Aleph::Diagnostic_Engine::has_errors(), and Aleph::Compiler_Lexer::next().
| TEST | ( | CompilerLexer | , |
| MalformedCharacterLiteralProducesInvalidToken | |||
| ) |
Definition at line 316 of file compiler_lexer_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::blossom_maximum_cardinality_matching(), Aleph::Diagnostic::code, Aleph::Diagnostic_Engine::get(), Aleph::Diagnostic::message, Aleph::Compiler_Lexer::next(), and Aleph::Diagnostic_Engine::size().
| TEST | ( | CompilerLexer | , |
| PeekDoesNotConsumeTheNextToken | |||
| ) |
Definition at line 148 of file compiler_lexer_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::blossom_maximum_cardinality_matching(), Aleph::next(), Aleph::Compiler_Lexer::next(), and Aleph::Compiler_Lexer::peek().
| TEST | ( | CompilerLexer | , |
| PublicAPIContract | |||
| ) |
Definition at line 346 of file compiler_lexer_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::blossom_maximum_cardinality_matching(), Aleph::Compiler_Lexer::current_offset(), Aleph::Compiler_Lexer::eof(), Aleph::Compiler_Lexer::next(), Aleph::Compiler_Lexer::reset(), and Aleph::Compiler_Lexer::source_file_id().
| TEST | ( | CompilerLexer | , |
| SkipsCommentsByDefault | |||
| ) |
Definition at line 168 of file compiler_lexer_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::blossom_maximum_cardinality_matching(), and Aleph::Diagnostic_Engine::has_errors().
| TEST | ( | CompilerLexer | , |
| UnexpectedCharacterProducesInvalidTokenAndDiagnostic | |||
| ) |
Definition at line 265 of file compiler_lexer_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::blossom_maximum_cardinality_matching(), Aleph::Diagnostic::code, Aleph::Diagnostic_Engine::get(), Aleph::Diagnostic::message, Aleph::Compiler_Lexer::next(), and Aleph::Diagnostic_Engine::size().
| TEST | ( | CompilerLexer | , |
| UnterminatedBlockCommentIsNotSilentlyDropped | |||
| ) |
Definition at line 299 of file compiler_lexer_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::blossom_maximum_cardinality_matching(), Aleph::Diagnostic::code, Aleph::Diagnostic_Engine::get(), Aleph::Diagnostic::message, Aleph::Compiler_Lexer::next(), and Aleph::Diagnostic_Engine::size().
| TEST | ( | CompilerLexer | , |
| UnterminatedStringProducesInvalidTokenAndDiagnostic | |||
| ) |
Definition at line 282 of file compiler_lexer_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::blossom_maximum_cardinality_matching(), Aleph::Diagnostic::code, Aleph::Diagnostic_Engine::get(), Aleph::Diagnostic::message, Aleph::Compiler_Lexer::next(), and Aleph::Diagnostic_Engine::size().