Lexer unit test now prints out resulting error
This commit is contained in:
parent
cf04dfd600
commit
9f8b48161a
@ -13,6 +13,8 @@ func TestTokenizeAll (test *testing.T) {
|
||||
}
|
||||
|
||||
tokens, err := Tokenize(file)
|
||||
test.Log("resulting error:")
|
||||
test.Log(err.Error())
|
||||
if err == nil {
|
||||
test.Log("Tokenize() should have returned an error")
|
||||
test.Fail()
|
||||
|
Reference in New Issue
Block a user