Skip to content

Commit 64538f4

Browse files
committed
Added additional territory.fromString tests
1 parent 025165f commit 64538f4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/test/java/com/mapcode/TerritoryTest.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2014 Stichting Mapcode Foundation (http://www.mapcode.com)
3-
*
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
@@ -48,4 +48,13 @@ public void disambiguateMNTest2() throws Exception {
4848
LOG.info("disambiguateMNTest2");
4949
Territory.fromString("MN", ParentTerritory.RUS);
5050
}
51+
52+
@Test
53+
public void territoryFromStringTest() throws Exception {
54+
LOG.info("territoryFromStringTest");
55+
assertEquals(Territory.NLD, Territory.fromString("NLD"));
56+
assertEquals(Territory.ARG, Territory.fromString("ARG"));
57+
assertEquals(Territory.ASM, Territory.fromString("US-AS"));
58+
assertEquals(Territory.ASM, Territory.fromString("USA-AS"));
59+
}
5160
}

0 commit comments

Comments
 (0)