Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
351e3c8a
Commit
351e3c8a
authored
14 years ago
by
Tadashi G. Takaoka
Browse files
Options
Downloads
Patches
Plain Diff
Fix unit test failure
Change-Id: I6814986f04a0cdf91837cfa60c7eca81a687236b
parent
ea6c2e33
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/com/android/inputmethod/latin/SuggestTests.java
+3
-3
3 additions, 3 deletions
tests/src/com/android/inputmethod/latin/SuggestTests.java
with
3 additions
and
3 deletions
tests/src/com/android/inputmethod/latin/SuggestTests.java
+
3
−
3
View file @
351e3c8a
...
...
@@ -118,8 +118,8 @@ public class SuggestTests extends SuggestTestsBase {
* Tests to make sure that zero frequency words are not suggested as completions.
*/
public
void
testZeroFrequencySuggestionsNegative
()
{
assert
Null
(
mHelper
.
getSuggestIndex
(
"yike"
,
"yikes"
));
assert
Null
(
mHelper
.
getSuggestIndex
(
"what"
,
"whatcha"
));
assert
True
(
mHelper
.
getSuggestIndex
(
"yike"
,
"yikes"
)
<
0
);
assert
True
(
mHelper
.
getSuggestIndex
(
"what"
,
"whatcha"
)
<
0
);
}
/**
...
...
@@ -127,7 +127,7 @@ public class SuggestTests extends SuggestTestsBase {
* Also such word is not considered auto correction, in some cases.
*/
public
void
testTooLargeEditDistance
()
{
assert
Null
(
mHelper
.
getSuggestIndex
(
"sniyr"
,
"about"
));
assert
True
(
mHelper
.
getSuggestIndex
(
"sniyr"
,
"about"
)
<
0
);
// TODO: The following test fails.
// notSuggested("the", mHelper.getAutoCorrection("rjw"));
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment