Commit 926e92f6 authored by expectocode's avatar expectocode

Add Nejat Alp

parent d13b064b
......@@ -17,6 +17,15 @@ public class QueryProcessor {
"his works of hard science fiction and popular science. \n");
results.append(System.lineSeparator());
}
if (query.toLowerCase().contains("alp")) {
results.append("Nejat Alp (born 9 November 1952) is a Turkish musician who\n" +
"plays synth-driven Turkish ambient folk. He began his professional\n" +
"career in 1969 by playing bass for various supporting bands in the\n" +
"clubs of Istanbul. In 1978 he changed his primary instrument from\n" +
"bass to keyboards, and became a vocalist. \n");
results.append(System.lineSeparator());
}
return results.toString();
}
}
......@@ -25,6 +25,11 @@ public class QueryProcessorTest {
assertThat(queryProcessor.process("Asimov"), containsString("science fiction"));
}
@Test
public void knowsAboutAlp() throws Exception {
assertThat(queryProcessor.process("Alp"), containsString("Turkish ambient folk"));
}
@Test
public void isNotCaseSensitive() throws Exception {
assertThat(queryProcessor.process("shakespeare"), containsString("playwright"));
......
Markdown is supported
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