map_delete_test.gno

0.30 Kb ยท 19 lines
 1package mapdelete
 2
 3import "testing"
 4
 5func TestGetMap(t *testing.T) {
 6	if !(GetMap(3)) {
 7		t.Error("Expected true, got ", GetMap(3))
 8	}
 9}
10
11func TestDeleteMap(t *testing.T) {
12	DeleteMap(cross, 3)
13}
14
15func TestGetMapAfterDelete(t *testing.T) {
16	if GetMap(3) {
17		t.Error("Expected false, got ", GetMap(3))
18	}
19}