Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs2-19wi
lab01
Commits
ac35ab40
Commit
ac35ab40
authored
6 years ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Updates tests to be slightly better
parent
3587aab3
Pipeline
#2659
canceled with stage
Changes
5
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.idea/workspace.xml
+135
-67
.idea/workspace.xml
lab01-wikipedia.iml
+0
-2
lab01-wikipedia.iml
tests/data/links_for_pizza_farm.txt
+0
-1
tests/data/links_for_pizza_farm.txt
tests/data/links_for_rsa.txt
+0
-1
tests/data/links_for_rsa.txt
tests/edu/caltech/cs2/lab01/WikipediaPageTests.java
+2
-0
tests/edu/caltech/cs2/lab01/WikipediaPageTests.java
with
137 additions
and
71 deletions
+137
-71
.idea/workspace.xml
View file @
ac35ab40
This diff is collapsed.
Click to expand it.
lab01-wikipedia.iml
View file @
ac35ab40
...
@@ -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"
/>
...
...
This diff is collapsed.
Click to expand it.
tests/data/links_for_pizza_farm.txt
View file @
ac35ab40
farm
farm
farm
pizza
pizza
wheat
wheat
tomato
tomato
...
...
This diff is collapsed.
Click to expand it.
tests/data/links_for_rsa.txt
View file @
ac35ab40
Ron Rivest
Ron Rivest
Ron Rivest
Adi Shamir
Adi Shamir
Leonard Adleman
Leonard Adleman
PKCS1
PKCS1
...
...
This diff is collapsed.
Click to expand it.
tests/edu/caltech/cs2/lab01/WikipediaPageTests.java
View file @
ac35ab40
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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
Menu
Projects
Groups
Snippets
Help