Added more tests

This commit is contained in:
Eduard Urbach 2025-02-20 15:06:22 +01:00
parent 35ee40988d
commit 5f7cc9115a
Signed by: eduard
GPG key ID: 49226B848C78F6C8
2 changed files with 72 additions and 1 deletions

View file

@ -51,10 +51,17 @@ func eachInstruction(tokens token.List, call func(token.List) error) error {
}
start = i + 1
case token.EOF:
if start < i {
return call(tokens[start:i])
}
return nil
}
}
if start != len(tokens) {
if start < len(tokens) {
return call(tokens[start:])
}