varius get cases

This commit is contained in:
omerfinger 2020-03-28 22:50:07 +03:00
parent 9fc999311c
commit 640f8ce5d2
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,7 @@ public class CaseInsensitiveMapUnitTest {
treeMap.put("ABC", 2); treeMap.put("ABC", 2);
assertEquals((Integer)2, treeMap.get("aBc")); assertEquals((Integer)2, treeMap.get("aBc"));
assertEquals((Integer)2, treeMap.get("ABc"));
} }
@Test @Test
@ -54,6 +55,7 @@ public class CaseInsensitiveMapUnitTest {
commonsHashMap.put("ABC", 2); commonsHashMap.put("ABC", 2);
assertEquals((Integer)2, commonsHashMap.get("aBc")); assertEquals((Integer)2, commonsHashMap.get("aBc"));
assertEquals((Integer)2, commonsHashMap.get("ABc"));
} }
@Test @Test
@ -63,6 +65,7 @@ public class CaseInsensitiveMapUnitTest {
linkedHashMap.put("ABC", 2); linkedHashMap.put("ABC", 2);
assertEquals((Integer)2, linkedHashMap.get("aBc")); assertEquals((Integer)2, linkedHashMap.get("aBc"));
assertEquals((Integer)2, linkedHashMap.get("ABc"));
} }
@Test @Test