diff options
author | 2010-12-09 21:06:26 +0900 | |
---|---|---|
committer | 2010-12-09 21:54:51 +0900 | |
commit | 9502cc177cc53678c9ddcc01d4d046f69220e13b (patch) | |
tree | 50898a64d22d9d96e8c06354a974b7c6b8685865 /tests | |
parent | 55b9d333c5d260cb5da3f6a2d872bda8c03478d7 (diff) | |
download | latinime-9502cc177cc53678c9ddcc01d4d046f69220e13b.tar.gz latinime-9502cc177cc53678c9ddcc01d4d046f69220e13b.tar.xz latinime-9502cc177cc53678c9ddcc01d4d046f69220e13b.zip |
Remove LatinIME prefix from classes
This change also cleanups preference key string constants
Change-Id: I58510f220a90d00d71a935731abeab87384675bb
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/EditDistanceTests.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/src/com/android/inputmethod/latin/EditDistanceTests.java b/tests/src/com/android/inputmethod/latin/EditDistanceTests.java index a9ed89df7..75bd04938 100644 --- a/tests/src/com/android/inputmethod/latin/EditDistanceTests.java +++ b/tests/src/com/android/inputmethod/latin/EditDistanceTests.java @@ -37,7 +37,7 @@ public class EditDistanceTests extends AndroidTestCase { * sitting */ public void testExample1() { - final int dist = LatinIMEUtil.editDistance("kitten", "sitting"); + final int dist = Utils.editDistance("kitten", "sitting"); assertEquals("edit distance between 'kitten' and 'sitting' is 3", 3, dist); } @@ -50,26 +50,26 @@ public class EditDistanceTests extends AndroidTestCase { * S--unday */ public void testExample2() { - final int dist = LatinIMEUtil.editDistance("Saturday", "Sunday"); + final int dist = Utils.editDistance("Saturday", "Sunday"); assertEquals("edit distance between 'Saturday' and 'Sunday' is 3", 3, dist); } public void testBothEmpty() { - final int dist = LatinIMEUtil.editDistance("", ""); + final int dist = Utils.editDistance("", ""); assertEquals("when both string are empty, no edits are needed", 0, dist); } public void testFirstArgIsEmpty() { - final int dist = LatinIMEUtil.editDistance("", "aaaa"); + final int dist = Utils.editDistance("", "aaaa"); assertEquals("when only one string of the arguments is empty," + " the edit distance is the length of the other.", 4, dist); } public void testSecoondArgIsEmpty() { - final int dist = LatinIMEUtil.editDistance("aaaa", ""); + final int dist = Utils.editDistance("aaaa", ""); assertEquals("when only one string of the arguments is empty," + " the edit distance is the length of the other.", 4, dist); @@ -78,27 +78,27 @@ public class EditDistanceTests extends AndroidTestCase { public void testSameStrings() { final String arg1 = "The quick brown fox jumps over the lazy dog."; final String arg2 = "The quick brown fox jumps over the lazy dog."; - final int dist = LatinIMEUtil.editDistance(arg1, arg2); + final int dist = Utils.editDistance(arg1, arg2); assertEquals("when same strings are passed, distance equals 0.", 0, dist); } public void testSameReference() { final String arg = "The quick brown fox jumps over the lazy dog."; - final int dist = LatinIMEUtil.editDistance(arg, arg); + final int dist = Utils.editDistance(arg, arg); assertEquals("when same string references are passed, the distance equals 0.", 0, dist); } public void testNullArg() { try { - LatinIMEUtil.editDistance(null, "aaa"); + Utils.editDistance(null, "aaa"); fail("IllegalArgumentException should be thrown."); } catch (Exception e) { assertTrue(e instanceof IllegalArgumentException); } try { - LatinIMEUtil.editDistance("aaa", null); + Utils.editDistance("aaa", null); fail("IllegalArgumentException should be thrown."); } catch (Exception e) { assertTrue(e instanceof IllegalArgumentException); |