File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -250,13 +250,13 @@ void test1() {
250
250
assert (cache.capacity () == 5 );
251
251
assert (cache.empty ());
252
252
cache.put (1 , 10 );
253
- cache.put (2 , 20 );
253
+ cache.put (- 2 , 20 );
254
254
255
255
assert (cache.size () == 2 );
256
256
assert (cache.capacity () == 5 );
257
257
assert (!cache.empty ());
258
258
259
- cache.put (3 , 30 );
259
+ cache.put (3 , - 30 );
260
260
cache.put (4 , 40 );
261
261
cache.put (5 , 50 );
262
262
cache.put (6 , 60 );
@@ -274,11 +274,11 @@ void test1() {
274
274
*/
275
275
void test2 () {
276
276
others::Cache::LFUCache<int , int > cache (5 );
277
- cache.put (1 , 10 );
277
+ cache.put (- 1 , - 10 );
278
278
cache.put (2 , 20 );
279
279
cache.put (3 , 30 );
280
280
281
- assert (cache.get (1 ) == 10 );
281
+ assert (cache.get (- 1 ) == - 10 );
282
282
cache.get (2 );
283
283
cache.get (3 );
284
284
You can’t perform that action at this time.
0 commit comments