fix 706: bug with edge case

This commit is contained in:
kinsolee
2022-02-08 22:03:54 +08:00
parent 1e0a830c33
commit 09d51fd394
3 changed files with 8 additions and 5 deletions

View File

@ -13,6 +13,9 @@ func Test_Problem706(t *testing.T) {
fmt.Printf("Contains 7 = %v\n", obj.Get(7))
param1 := obj.Get(100)
fmt.Printf("param1 = %v\n", param1)
obj.Remove(100007)
param1 = obj.Get(7)
fmt.Printf("param1 = %v\n", param1)
obj.Remove(7)
param1 = obj.Get(7)
fmt.Printf("param1 = %v\n", param1)