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
cs3-20sp
project01
Commits
75f3ddb5
Commit
75f3ddb5
authored
5 years ago
by
Caleb C. Sander
Browse files
Options
Download
Email Patches
Plain Diff
Fix misplaced parenthesis
parent
17144456
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_suite_polygon.c
+2
-2
tests/test_suite_polygon.c
with
2 additions
and
2 deletions
+2
-2
tests/test_suite_polygon.c
View file @
75f3ddb5
...
@@ -150,8 +150,8 @@ void test_circ_rotate() {
...
@@ -150,8 +150,8 @@ void test_circ_rotate() {
double
angle
=
2
*
M_PI
*
i
/
CIRC_NPOINTS
;
double
angle
=
2
*
M_PI
*
i
/
CIRC_NPOINTS
;
assert
(
vec_isclose
(
assert
(
vec_isclose
(
*
vec_list_get
(
c
,
i
),
*
vec_list_get
(
c
,
i
),
(
vector_t
)
{
cos
(
angle
+
ROT_ANGLE
),
sin
(
angle
+
ROT_ANGLE
)}
)
(
vector_t
)
{
cos
(
angle
+
ROT_ANGLE
),
sin
(
angle
+
ROT_ANGLE
)}
);
)
);
}
}
assert
(
isclose
(
polygon_area
(
c
),
CIRC_AREA
));
assert
(
isclose
(
polygon_area
(
c
),
CIRC_AREA
));
assert
(
vec_isclose
(
polygon_centroid
(
c
),
VEC_ZERO
));
assert
(
vec_isclose
(
polygon_centroid
(
c
),
VEC_ZERO
));
...
...
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