* ["LRUCache","put","put","get","put","put","get"] [[2],[2,1],[2,2],[2],[1,1],[4,1],[2]] Output: [null,null,null,null,null,1,-1] Expected: [null,null,null,null,null,-1,3] */
(t *testing.T)
| 76 | Expected: [null,null,null,null,null,-1,3] |
| 77 | */ |
| 78 | func TestLRUCache_6(t *testing.T) { |
| 79 | cache := Constructor(2) |
| 80 | cache.Put(2, 1) |
| 81 | cache.Put(2, 2) |
| 82 | assert.Equal(t, 2, cache.Get(2)) |
| 83 | cache.Put(1, 1) |
| 84 | cache.Put(4, 1) |
| 85 | assert.Equal(t, -1, cache.Get(2)) |
| 86 | } |
| 87 | |
| 88 | /* |
| 89 | ["LRUCache","get","put","get","put","put","get","get"] |
nothing calls this directly
no test coverage detected