mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-27 16:10:36 +07:00
Added additional test case for weapons using string primary key
This commit is contained in:
parent
e0d4884b96
commit
b4d54d687c
@ -65,6 +65,16 @@ public class TablesTest extends RiiabloTest {
|
|||||||
Assert.assertEquals("ReturnedArcher", record.NameStr);
|
Assert.assertEquals("ReturnedArcher", record.NameStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void weapons_primary_key() {
|
||||||
|
FileHandle handle = Gdx.files.internal("test/weapons.txt");
|
||||||
|
TsvParser parser = TsvParser.parse(handle.readBytes());
|
||||||
|
TableManifest.weapons.parser = null;
|
||||||
|
WeaponsTable table = Tables.loadTsv(TableManifest.weapons, parser);
|
||||||
|
Assert.assertNotNull(table.get(54));
|
||||||
|
Assert.assertNotNull(table.get("BRN"));
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void weapons_superclass_access() {
|
public void weapons_superclass_access() {
|
||||||
FileHandle handle = Gdx.files.internal("test/weapons.txt");
|
FileHandle handle = Gdx.files.internal("test/weapons.txt");
|
||||||
|
Loading…
Reference in New Issue
Block a user