Dump intervals in serialization check

The Interval::dump() method will show if intervals are synthetic or not,
which can be useful when trying to determine why a comparison is
failing.

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
This commit is contained in:
Shaun Ruffell 2021-05-13 08:28:05 -05:00 committed by Thomas Lauf
parent 4c8ccd99c3
commit 939491d060

View file

@ -108,7 +108,7 @@ void Datafile::addInterval (const Interval& interval)
if (interval != test)
{
throw (format ("Encode / decode check failed:\n {1}\nis not equal to:\n {2}",
serialization, test.serialize ()));
interval.dump (), test.dump ()));
}
_lines.push_back (serialization);