Commit 0bf79e08 authored by RobJBarr's avatar RobJBarr
Browse files

Fixed typos in tests and query name

parent b56ec2bd
......@@ -36,8 +36,8 @@ public class QueryProcessor {
"Also regarded as a major prophet in Islam.");
results.append(System.lineSeparator());
}
if (query.toLowerCase().contains("buddah")) {
results.append("Buddah (563 - 483 BC)\n" +
if (query.toLowerCase().contains("buddha")) {
results.append("Buddha (563 - 483 BC)\n" +
"Spiritual teacher and philosopher from ancient India. Founder of Buddhism.");
results.append(System.lineSeparator());
}
......
......@@ -27,12 +27,12 @@ public class QueryProcessorTest {
@Test
public void knowsAboutJesus() throws Exception {
assertThat(queryProcessor.process("Jesus"), containsString("christianity"));
assertThat(queryProcessor.process("Jesus"), containsString("Christianity"));
}
@Test
public void knowsAboutMuhammad() throws Exception {
assertThat(queryProcessor.process("Muhammad"), containsString("islam"));
assertThat(queryProcessor.process("Muhammad"), containsString("Islam"));
}
@Test
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment