(i1, i2 []Token)
| 362 | } |
| 363 | |
| 364 | func compareTokens(i1, i2 []Token) bool { |
| 365 | if len(i1) != len(i2) { |
| 366 | return false |
| 367 | } |
| 368 | for k := range i1 { |
| 369 | if i1[k].Kind != i2[k].Kind { |
| 370 | return false |
| 371 | } |
| 372 | if i1[k].Value != i2[k].Value { |
| 373 | return false |
| 374 | } |
| 375 | } |
| 376 | return true |
| 377 | } |
| 378 | |
| 379 | func TestLex_location(t *testing.T) { |
| 380 | source := file.NewSource("1..2\n3..4") |
no outgoing calls
no test coverage detected
searching dependent graphs…