github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/examples/gno.land/r/x/map_delete/map_delete_test.gno (about) 1 package mapdelete 2 3 import ( 4 "testing" 5 ) 6 7 func TestGetMap(t *testing.T) { 8 if !(GetMap(3)) { 9 t.Error("Expected true, got ", GetMap(3)) 10 } 11 } 12 13 func TestDeleteMap(t *testing.T) { 14 DeleteMap(3) 15 } 16 17 func TestGetMapAfterDelete(t *testing.T) { 18 if GetMap(3) { 19 t.Error("Expected false, got ", GetMap(3)) 20 } 21 }