tests(aa): improve aa unit tests.

This commit is contained in:
Alexandre Pujol 2024-05-29 21:18:30 +01:00
parent 5f64bb4e0c
commit 0f382a4d5d
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 17 additions and 4 deletions

View file

@ -35,6 +35,7 @@ var (
tok = map[Kind]string{
COMMENT: "#",
VARIABLE: "@{",
HAT: "^",
}
openBlocks = []rune{tokOPENPAREN, tokOPENBRACE, tokOPENBRACKET}
closeBlocks = []rune{tokCLOSEPAREN, tokCLOSEBRACE, tokCLOSEBRACKET}
@ -222,6 +223,8 @@ done:
case strings.HasPrefix(tmp, PROFILE.Tok()):
rawHeader = tmp
break done
case strings.HasPrefix(tmp, HAT.String()), strings.HasPrefix(tmp, HAT.Tok()):
break done
default:
rawPreamble = append(rawPreamble, tmp)
}