Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
ClassAssessment2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
a-j.towse
ClassAssessment2
Commits
0d146fb1
Commit
0d146fb1
authored
May 07, 2022
by
a-j.towse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final Commit ammendments
parent
0e1ab369
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
9 deletions
+2
-9
Rectangle.class
bin/Rectangle.class
+0
-0
unitTest.class
bin/unitTest.class
+0
-0
Rectangle.java
src/Rectangle.java
+1
-8
unitTest.java
src/unitTest.java
+1
-1
No files found.
bin/Rectangle.class
View file @
0d146fb1
No preview for this file type
bin/unitTest.class
View file @
0d146fb1
No preview for this file type
src/Rectangle.java
View file @
0d146fb1
...
...
@@ -22,7 +22,6 @@ public class Rectangle extends Shape{
float
circ
=
(
width
*
2
)
+
(
height
*
2
);
return
circ
;
}
<<<<<<<
HEAD
@Override
public
void
draw
(){
...
...
@@ -43,11 +42,5 @@ public class Rectangle extends Shape{
}
System
.
out
.
println
(
""
);
}
=======
@Override
public
void
draw
(){
}
>>>>>>>
6
c07dbfb68ad5b5ceab794cbb90d1b5c17473575
}
src/unitTest.java
View file @
0d146fb1
...
...
@@ -104,7 +104,7 @@ public class unitTest {
@Test
public
void
testRectangleHeight
()
{
// test setSize()
Shape
testShape
=
new
Rectangle
(
78
);
Shape
testShape
=
new
Rectangle
(
7
,
8
);
testShape
.
setHeight
(
3
);
assertEquals
(
3
,
testShape
.
getHeight
());
}
...
...
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