| Author | Dave Jarvis <email> |
|---|---|
| Date | 2021-06-27 23:27:38 GMT-0700 |
| Commit | 79ed09231bf4e09551f04fa3e825dfcdef19c7a8 |
| Parent | e52dc56 |
| } | ||
| else if( curr == ' ' ) { | ||
| + slurp( i, ( next, ci ) -> next == ' ' ); | ||
| lexeme = createLexeme( SPACE, began, i.getIndex() ); | ||
| } |
| } | ||
| + @Test | ||
| + void test_Lexing_Whitespace_EmitSpace() { | ||
| + testType( " ", SPACE ); | ||
| + testType( "\n \n", EOL, SPACE, EOL ); | ||
| + } | ||
| + | ||
| private void testType( final String actual, final LexemeType... expected ) { | ||
| final var list = Arrays.asList( expected ); |
| Delta | 7 lines added, 0 lines removed, 7-line increase |
|---|