moth

Monarch Of The Hill game server
git clone https://git.woozle.org/neale/moth.git

moth / pkg / transpile
Neale Pickett  ·  2020-09-08

inventory_test.go

 1package transpile
 2
 3import "testing"
 4
 5func TestInventory(t *testing.T) {
 6	fs := newTestFs()
 7	inv, err := FsInventory(fs)
 8	if err != nil {
 9		t.Error(err)
10	}
11	if c, ok := inv["cat0"]; !ok {
12		t.Error("No cat0")
13	} else if len(c) != 9 {
14		t.Error("Wrong category length", c)
15	}
16}