Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
Parallel Programming Lab 2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
julanar.ali
Parallel Programming Lab 2
Commits
3ce20c06
Commit
3ce20c06
authored
Nov 15, 2023
by
julanar.ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initializing data before testing
parent
551cc185
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
TestParallelCounter.java
...java/fiftyShadesOfMultiThreading/TestParallelCounter.java
+6
-0
TestParallelCounter.class
...ses/fiftyShadesOfMultiThreading/TestParallelCounter.class
+0
-0
No files found.
src/test/java/fiftyShadesOfMultiThreading/TestParallelCounter.java
View file @
3ce20c06
...
...
@@ -23,11 +23,17 @@ import org.junit.jupiter.api.Test;*/
}
private
static
void
testAll
(
int
threadCount
)
{
initialize
();
assertEquals
(
result
,
ParallelCounter0
.
primesCount
(
data
,
threadCount
));
System
.
out
.
println
(
"parallel counter 0:"
+
result
);
assertEquals
(
result
,
ParallelCounter1
.
primesCount
(
data
,
threadCount
));
System
.
out
.
println
(
"parallel counter 1:"
+
result
);
assertEquals
(
result
,
ParallelCounter2
.
primesCount
(
data
,
threadCount
));
System
.
out
.
println
(
"parallel counter 2:"
+
result
);
assertEquals
(
result
,
ParallelCounter3
.
primesCount
(
data
,
threadCount
));
System
.
out
.
println
(
"parallel counter 3:"
+
result
);
assertEquals
(
result
,
ParallelCounter4
.
primesCount
(
data
,
threadCount
));
System
.
out
.
println
(
"parallel counter 4:"
+
result
);
}
@Test
...
...
target/test-classes/fiftyShadesOfMultiThreading/TestParallelCounter.class
View file @
3ce20c06
No preview for this file type
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