aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-26 06:33:48 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-26 06:33:48 +0000
commitf46e0731d1fc5f4216e8c40ae7b5bc2d6ffeb74b (patch)
treea6bb5bae376d961600c7c2713b42bb8dbe7fc7e7
parent676210330328f04eda39fa5ee9b173e3acc86b88 (diff)
downloadpaludis-f46e0731d1fc5f4216e8c40ae7b5bc2d6ffeb74b.tar.gz
paludis-f46e0731d1fc5f4216e8c40ae7b5bc2d6ffeb74b.tar.xz
Compiler warnings
-rw-r--r--paludis/util/damerau_levenshtein_TEST.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/paludis/util/damerau_levenshtein_TEST.cc b/paludis/util/damerau_levenshtein_TEST.cc
index bd597bd..fc67b18 100644
--- a/paludis/util/damerau_levenshtein_TEST.cc
+++ b/paludis/util/damerau_levenshtein_TEST.cc
@@ -41,20 +41,20 @@ namespace test_cases
{
DamerauLevenshtein dl("foo");
- TEST_CHECK_EQUAL(dl.distance_with("foo"), 0);
- TEST_CHECK_EQUAL(dl.distance_with("foo1"), 1);
- TEST_CHECK_EQUAL(dl.distance_with("fo"), 1);
- TEST_CHECK_EQUAL(dl.distance_with("fao"), 1);
- TEST_CHECK_EQUAL(dl.distance_with("ofo"), 1);
- TEST_CHECK_EQUAL(dl.distance_with("fie"), 2);
- TEST_CHECK_EQUAL(dl.distance_with("ife"), 3);
- TEST_CHECK_EQUAL(dl.distance_with("bar"), 3);
- TEST_CHECK_EQUAL(dl.distance_with(""), 3);
+ TEST_CHECK_EQUAL(dl.distance_with("foo"), 0u);
+ TEST_CHECK_EQUAL(dl.distance_with("foo1"), 1u);
+ TEST_CHECK_EQUAL(dl.distance_with("fo"), 1u);
+ TEST_CHECK_EQUAL(dl.distance_with("fao"), 1u);
+ TEST_CHECK_EQUAL(dl.distance_with("ofo"), 1u);
+ TEST_CHECK_EQUAL(dl.distance_with("fie"), 2u);
+ TEST_CHECK_EQUAL(dl.distance_with("ife"), 3u);
+ TEST_CHECK_EQUAL(dl.distance_with("bar"), 3u);
+ TEST_CHECK_EQUAL(dl.distance_with(""), 3u);
DamerauLevenshtein de("");
- TEST_CHECK_EQUAL(de.distance_with("foo"), 3);
- TEST_CHECK_EQUAL(de.distance_with(""), 0);
+ TEST_CHECK_EQUAL(de.distance_with("foo"), 3u);
+ TEST_CHECK_EQUAL(de.distance_with(""), 0u);
}
} test_damerau_levenshtein_test;
}