(t *testing.T, expect string, actual interface{})
| 6 | ) |
| 7 | |
| 8 | func expect(t *testing.T, expect string, actual interface{}) { |
| 9 | actualString := fmt.Sprint(actual) |
| 10 | if expect != actualString { |
| 11 | t.Errorf("期待值=\"%s\", 实际=\"%s\"", expect, actualString) |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | func printTokens(tokens []*Token, numTokens int) (output string) { |
| 16 | for iToken := 0; iToken < numTokens; iToken++ { |
no outgoing calls