Commit ac35ab40 authored by Adam Blank's avatar Adam Blank
Browse files

Updates tests to be slightly better

parent 3587aab3
Pipeline #2659 canceled with stage
Showing with 137 additions and 71 deletions
+137 -71
This diff is collapsed.
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
<component name="NewModuleRootManager" inherit-compiler-output="true"> <component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output /> <exclude-output />
<content url="file://$MODULE_DIR$"> <content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/.gradle" /> <excludeFolder url="file://$MODULE_DIR$/.gradle" />
<excludeFolder url="file://$MODULE_DIR$/build" /> <excludeFolder url="file://$MODULE_DIR$/build" />
<excludeFolder url="file://$MODULE_DIR$/out" /> <excludeFolder url="file://$MODULE_DIR$/out" />
......
farm farm
farm
pizza pizza
wheat wheat
tomato tomato
......
Ron Rivest Ron Rivest
Ron Rivest
Adi Shamir Adi Shamir
Leonard Adleman Leonard Adleman
PKCS1 PKCS1
......
...@@ -114,6 +114,7 @@ public class WikipediaPageTests { ...@@ -114,6 +114,7 @@ public class WikipediaPageTests {
"Sombrero_Galaxy, is", "Sombrero_Galaxy, is",
"Sunflower_Galaxy, is", "Sunflower_Galaxy, is",
"Messier_63, is" "Messier_63, is"
"bananaramarama, is not"
}) })
public void testIsGalaxy(String title, String result) { public void testIsGalaxy(String title, String result) {
WikipediaPage page = new WikipediaPage(title); WikipediaPage page = new WikipediaPage(title);
...@@ -151,6 +152,7 @@ public class WikipediaPageTests { ...@@ -151,6 +152,7 @@ public class WikipediaPageTests {
"Ursa Major ii, Ursa Major II", "Ursa Major ii, Ursa Major II",
"Ursa Major Ii, Ursa Major II", "Ursa Major Ii, Ursa Major II",
"Leo II (dwarf galaxy), Leo II (dwarf galaxy)" "Leo II (dwarf galaxy), Leo II (dwarf galaxy)"
"Leo II (HeLlo GALAXY), Leo II (hello galaxy)"
}) })
public void testGetTitle2(String title, String correct) { public void testGetTitle2(String title, String correct) {
WikipediaPage page = new WikipediaPage(title); WikipediaPage page = new WikipediaPage(title);
......
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