mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
fix typo, removeEqual对value为null情况未处理
This commit is contained in:
@@ -43,4 +43,19 @@ public class DictTest {
|
||||
Assert.assertEquals("#00FF00", dict.get("GREEN"));
|
||||
Assert.assertEquals("#0000FF", dict.get("BLUE"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void removeEqualTest(){
|
||||
Dict dict = Dict.of(
|
||||
"key1", null
|
||||
);
|
||||
|
||||
Dict dict2 = Dict.of(
|
||||
"key1", null
|
||||
);
|
||||
|
||||
dict.removeEqual(dict2);
|
||||
|
||||
Assert.assertTrue(dict.isEmpty());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user