Added single digit zero and eight to lexer number test
This commit is contained in:
parent
7fc51c278f
commit
d27c0ff07c
@ -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) },
|
||||
|
@ -1,4 +1,5 @@
|
||||
:arf
|
||||
0
|
||||
83628266
|
||||
0b100111111000001000011101010
|
||||
0x4Fc10Ea
|
||||
|
Reference in New Issue
Block a user