Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
94493a52
Commit
94493a52
authored
May 09, 2011
by
reichenbach
Browse files
[FIX] changed tset to use a delta
parent
43d8d90a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
src/common/math/test/WSymmetricSphericalHarmonic_test.h
src/common/math/test/WSymmetricSphericalHarmonic_test.h
+16
-2
No files found.
src/common/math/test/WSymmetricSphericalHarmonic_test.h
View file @
94493a52
...
...
@@ -75,7 +75,14 @@ public:
{
reference
(
i
,
i
)
=
2.0
*
piDouble
*
3.0
/
8.0
;
}
TS_ASSERT_EQUALS
(
result
,
reference
);
for
(
size_t
i
=
0
;
i
<
15
;
++
i
)
{
for
(
size_t
j
=
0
;
j
<
15
;
++
j
)
{
TS_ASSERT_DELTA
(
result
(
i
,
j
),
reference
(
i
,
j
),
1e-9
);
}
}
}
/**
...
...
@@ -98,7 +105,14 @@ public:
{
reference
(
i
,
i
)
=
400.0
;
}
TS_ASSERT_EQUALS
(
result
,
reference
);
for
(
size_t
i
=
0
;
i
<
15
;
++
i
)
{
for
(
size_t
j
=
0
;
j
<
15
;
++
j
)
{
TS_ASSERT_DELTA
(
result
(
i
,
j
),
reference
(
i
,
j
),
1e-9
);
}
}
}
/**
...
...
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