Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Wang, Vincent H
simplewebapp
Commits
0bf79e08
Commit
0bf79e08
authored
Jan 21, 2021
by
RobJBarr
Browse files
Fixed typos in tests and query name
parent
b56ec2bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/ic/doc/QueryProcessor.java
View file @
0bf79e08
...
...
@@ -36,8 +36,8 @@ public class QueryProcessor {
"Also regarded as a major prophet in Islam."
);
results
.
append
(
System
.
lineSeparator
());
}
if
(
query
.
toLowerCase
().
contains
(
"budd
a
h"
))
{
results
.
append
(
"Budd
a
h (563 - 483 BC)\n"
+
if
(
query
.
toLowerCase
().
contains
(
"buddh
a
"
))
{
results
.
append
(
"Buddh
a
(563 - 483 BC)\n"
+
"Spiritual teacher and philosopher from ancient India. Founder of Buddhism."
);
results
.
append
(
System
.
lineSeparator
());
}
...
...
src/test/java/ic/doc/QueryProcessorTest.java
View file @
0bf79e08
...
...
@@ -27,12 +27,12 @@ public class QueryProcessorTest {
@Test
public
void
knowsAboutJesus
()
throws
Exception
{
assertThat
(
queryProcessor
.
process
(
"Jesus"
),
containsString
(
"
c
hristianity"
));
assertThat
(
queryProcessor
.
process
(
"Jesus"
),
containsString
(
"
C
hristianity"
));
}
@Test
public
void
knowsAboutMuhammad
()
throws
Exception
{
assertThat
(
queryProcessor
.
process
(
"Muhammad"
),
containsString
(
"
i
slam"
));
assertThat
(
queryProcessor
.
process
(
"Muhammad"
),
containsString
(
"
I
slam"
));
}
@Test
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment