Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
compiler_lexer_test.cc File Reference

Tests for Compiler_Lexer.H. More...

#include <gtest/gtest.h>
#include <Compiler_Lexer.H>
#include <vector>
Include dependency graph for compiler_lexer_test.cc:

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)
 

Detailed Description

Tests for Compiler_Lexer.H.

Definition in file compiler_lexer_test.cc.

Function Documentation

◆ TEST() [1/13]

TEST ( CompilerLexer  ,
CanDisableBlockCommentLexing   
)

◆ TEST() [2/13]

TEST ( CompilerLexer  ,
EmptyInputReturnsEOFImmediately   
)

◆ TEST() [3/13]

◆ TEST() [4/13]

TEST ( CompilerLexer  ,
LexesKeywordsIdentifiersNumbersAndSpans   
)

◆ TEST() [5/13]

TEST ( CompilerLexer  ,
LexesNominalTypeDeclarationKeywords   
)

◆ TEST() [6/13]

TEST ( CompilerLexer  ,
LexesStringsCharsAndCompoundOperators   
)

◆ TEST() [7/13]

◆ TEST() [8/13]

◆ TEST() [9/13]

◆ TEST() [10/13]

TEST ( CompilerLexer  ,
SkipsCommentsByDefault   
)

◆ TEST() [11/13]

◆ TEST() [12/13]

◆ TEST() [13/13]