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
lab02
Commits
b738dc89
Commit
b738dc89
authored
6 years ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Reorders lab03 and lab02
parent
baa3ce2a
master
No related merge requests found
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
.idea/misc.xml
+1
-1
.idea/misc.xml
.idea/modules.xml
+2
-2
.idea/modules.xml
.idea/vcs.xml
+1
-1
.idea/vcs.xml
.idea/workspace.xml
+83
-140
.idea/workspace.xml
lab02-debugging.iml
+0
-0
lab02-debugging.iml
src/edu/caltech/cs2/lab02/Searcher.java
+1
-1
src/edu/caltech/cs2/lab02/Searcher.java
src/edu/caltech/cs2/lab02/SearcherClient.java
+1
-1
src/edu/caltech/cs2/lab02/SearcherClient.java
tests/edu/caltech/cs2/lab02/BinarySearcherTests.java
+2
-2
tests/edu/caltech/cs2/lab02/BinarySearcherTests.java
tests/edu/caltech/cs2/lab02/LinearSearcherTests.java
+1
-1
tests/edu/caltech/cs2/lab02/LinearSearcherTests.java
with
92 additions
and
149 deletions
+92
-149
.idea/misc.xml
View file @
b738dc89
...
...
@@ -3,7 +3,7 @@
<component
name=
"PreferredVcsStorage"
>
<preferredVcsName>
ApexVCS
</preferredVcsName>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_11"
default=
"true"
project-jdk-name=
"11
.0.1
"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_11"
default=
"true"
project-jdk-name=
"11"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/out"
/>
</component>
</project>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.idea/modules.xml
View file @
b738dc89
...
...
@@ -2,7 +2,7 @@
<project
version=
"4"
>
<component
name=
"ProjectModuleManager"
>
<modules>
<module
fileurl=
"file://$PROJECT_DIR$/lab0
3
-debugging.iml"
filepath=
"$PROJECT_DIR$/lab0
3
-debugging.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/lab0
2
-debugging.iml"
filepath=
"$PROJECT_DIR$/lab0
2
-debugging.iml"
/>
</modules>
</component>
</project>
\ No newline at end of file
</project>
This diff is collapsed.
Click to expand it.
.idea/vcs.xml
View file @
b738dc89
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"$PROJECT_DIR$
/../../..
"
vcs=
"Git"
/>
<mapping
directory=
"$PROJECT_DIR$"
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.idea/workspace.xml
View file @
b738dc89
This diff is collapsed.
Click to expand it.
lab0
3
-debugging.iml
→
lab0
2
-debugging.iml
View file @
b738dc89
File moved
This diff is collapsed.
Click to expand it.
src/edu/caltech/cs2/lab0
3
/Searcher.java
→
src/edu/caltech/cs2/lab0
2
/Searcher.java
View file @
b738dc89
package
edu.caltech.cs2.lab0
3
;
package
edu.caltech.cs2.lab0
2
;
public
class
Searcher
{
public
static
boolean
isSorted
(
int
[]
array
)
{
...
...
This diff is collapsed.
Click to expand it.
src/edu/caltech/cs2/lab0
3
/SearcherClient.java
→
src/edu/caltech/cs2/lab0
2
/SearcherClient.java
View file @
b738dc89
package
edu.caltech.cs2.lab0
3
;
package
edu.caltech.cs2.lab0
2
;
import
org.junit.jupiter.api.*
;
...
...
This diff is collapsed.
Click to expand it.
tests/edu/caltech/cs2/lab0
3
/BinarySearcherTests.java
→
tests/edu/caltech/cs2/lab0
2
/BinarySearcherTests.java
View file @
b738dc89
package
edu.caltech.cs2.lab0
3
;
package
edu.caltech.cs2.lab0
2
;
import
org.junit.jupiter.api.*
;
...
...
@@ -47,7 +47,7 @@ public class BinarySearcherTests {
int
trial
=
0
;
while
(
trial
<
TRIALS
)
{
// Generate a random array of a random length
int
[]
arr
=
generateRandomSortedArray
(
r
,
Math
.
abs
(
r
.
nextInt
()));
int
[]
arr
=
generateRandomSortedArray
(
r
,
Math
.
abs
(
r
.
nextInt
()
%
10000
));
// We want to test both elements that are in the array and not in the array
// So, run through all the elements in the array, and for each one test both
...
...
This diff is collapsed.
Click to expand it.
tests/edu/caltech/cs2/lab0
3
/LinearSearcherTests.java
→
tests/edu/caltech/cs2/lab0
2
/LinearSearcherTests.java
View file @
b738dc89
package
edu.caltech.cs2.lab0
3
;
package
edu.caltech.cs2.lab0
2
;
import
org.junit.jupiter.api.*
;
...
...
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