File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,22 @@ TEST(NodesTest, GaussLobattoNodes) {
125125 EXPECT_THAT (l9, testing::Pointwise (DoubleNear (), l9e));
126126}
127127
128+ TEST (QuadratureTest, GaussLobattoNodes) {
129+ auto l3 = pfasst::compute_nodes<long double >(3 , " gauss-lobatto" );
130+
131+ auto s3 = pfasst::compute_quadrature (l3, l3, ' s' );
132+ const long double s3e[6 ] = { 0.20833333333333333 ,
133+ 0.33333333333333333 ,
134+ -0.04166666666666666 ,
135+ -0.04166666666666666 ,
136+ 0.33333333333333333 ,
137+ 0.20833333333333333 };
138+
139+ EXPECT_THAT (s3, testing::Pointwise (DoubleNear (), s3e));
140+
141+ // XXX: need more tests here
142+ }
143+
128144int main (int argc, char **argv) {
129145 testing::InitGoogleTest (&argc, argv);
130146 return RUN_ALL_TESTS ();
You can’t perform that action at this time.
0 commit comments