Improved code quality

This commit is contained in:
Eduard Urbach 2025-02-20 16:55:17 +01:00
parent 5f7cc9115a
commit f6242bc7ec
Signed by: eduard
GPG key ID: 49226B848C78F6C8
12 changed files with 51 additions and 37 deletions

View file

@ -388,6 +388,21 @@ func TestLeadingZero(t *testing.T) {
}
}
func TestRange(t *testing.T) {
tokens := token.Tokenize([]byte("a..b"))
expected := []token.Kind{
token.Identifier,
token.Range,
token.Identifier,
token.EOF,
}
for i, kind := range expected {
assert.Equal(t, tokens[i].Kind, kind)
}
}
func TestSeparator(t *testing.T) {
tokens := token.Tokenize([]byte("a,b,c"))