mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(indexers): AnimeBytes parsing (#1259)
* change test to expect correct output * fix regex * improve error message
This commit is contained in:
parent
2bd1a68a94
commit
570af0940b
2 changed files with 6 additions and 6 deletions
|
@ -25,10 +25,10 @@ func TestYamlExpectations(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, parseLine := range d.IRC.Parse.Lines {
|
||||
for i, test := range parseLine.Tests {
|
||||
for _, test := range parseLine.Tests {
|
||||
parseOutput := map[string]string{}
|
||||
ParseLine(nil, parseLine.Pattern, parseLine.Vars, parseOutput, test.Line, parseLine.Ignore)
|
||||
assert.Equal(t, test.Expect, parseOutput, "error in expectation %d", i)
|
||||
assert.Equal(t, test.Expect, parseOutput, "error parsing %s", test.Line)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue