Added preload for sounds table records test

This commit is contained in:
Collin Smith 2020-12-27 21:54:33 -08:00
parent 2ea6398d0c
commit 4ac194b335

View File

@ -171,6 +171,7 @@ public class TablesTest extends RiiabloTest {
TableManifest.sounds.parser = null;
FileHandle handle = Gdx.files.internal("test/sounds.txt");
SoundsTable table = Tables.loadTsv(TableManifest.sounds, handle);
for (int i = 0, s = table.parser.parser().numRecords(); i < s; i++) table.get(i);
for (Sounds record : table) {
Assert.assertSame(record, table.get(record.Index));
}