mirror of
https://github.com/arcctgx/ARver
synced 2025-06-06 15:23:37 +02:00
For each test add a pair of files: dBAR file with a raw AccurateRip binary response, and a JSON file containing an expected outcome of processing this response using AccurateRipDisc.make_dict() method. In each test the raw binary response is first parsed by _parse_raw_bytes() method of Fetcher, and then converted to a dictionary and compared with the expected result read from a JSON file. JSON file corresponding to the one track response was created manually. The remaining JSON files were created by dumping make_dict() results. The purpose of adding these test cases is to guard against introducing accidental regressions. The correctness of the parser code has already been verified by extensive manual testing with physical media, so using existing code for generating expected results is acceptable.
13 lines
143 B
JSON
13 lines
143 B
JSON
{
|
|
"1": {
|
|
"655774750": {
|
|
"confidence": 7,
|
|
"response": 1
|
|
},
|
|
"2150913158": {
|
|
"confidence": 6,
|
|
"response": 2
|
|
}
|
|
},
|
|
"2": {}
|
|
}
|