Added single digit zero and eight to lexer number test

This commit is contained in:
Sasha Koshka 2022-08-15 14:32:59 -04:00
parent 7fc51c278f
commit d27c0ff07c
2 changed files with 5 additions and 0 deletions

View File

@ -91,6 +91,10 @@ func TestTokenizeAll (test *testing.T) {
func TestTokenizeNumbers (test *testing.T) {
checkTokenSlice("../tests/lexer/numbers.arf", []Token {
Token { kind: TokenKindUInt, value: uint64(0) },
Token { kind: TokenKindNewline },
Token { kind: TokenKindUInt, value: uint64(5) },
Token { kind: TokenKindNewline },
Token { kind: TokenKindUInt, value: uint64(83628266) },
Token { kind: TokenKindNewline },
Token { kind: TokenKindUInt, value: uint64(83628266) },

View File

@ -1,4 +1,5 @@
:arf
0
83628266
0b100111111000001000011101010
0x4Fc10Ea