(t *testing.T, a []FFTok, b []FFTok)
| 38 | } |
| 39 | |
| 40 | func assertTokensEqual(t *testing.T, a []FFTok, b []FFTok) { |
| 41 | |
| 42 | if len(a) != len(b) { |
| 43 | t.Fatalf("Token lists of mixed length: expected=%v found=%v", a, b) |
| 44 | return |
| 45 | } |
| 46 | |
| 47 | for i, v := range a { |
| 48 | if b[i] != v { |
| 49 | t.Fatalf("Invalid Token: expected=%d found=%d token=%d", |
| 50 | v, b, i) |
| 51 | return |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | func scanToTok(ffl *FFLexer, targetTok FFTok) error { |
| 57 | _, err := scanToTokCount(ffl, targetTok) |
no test coverage detected
searching dependent graphs…