Text · 628 bytes Raw Blame History
1 suite "frontend/lexer"
2
3 case "free_form_tokens"
4 source "../../fixtures/frontend/lexer/free_tokens.f90"
5 armfortas => tokens
6 expect tokens contains "identifier"
7 expect tokens contains "\"total\""
8 expect tokens contains "string literal"
9 end
10
11 case "fixed_form_tokens"
12 source "../../fixtures/frontend/lexer/fixed_columns.f"
13 armfortas => tokens
14 expect tokens contains "integer literal"
15 expect tokens contains "\"I\""
16 expect tokens contains "\"J\""
17 end
18
19 case "fixed_form_bad_string"
20 source "../../fixtures/frontend/lexer/bad_string.f"
21 armfortas => tokens
22 expect-fail lexer contains "unterminated string literal in fixed-form body"
23 end
24