Test Quadrature

To test quadrature points and weights.

class test_quadrature.TestQuadrature1dMesh

To test quadrature points and weights given a 1d mesh.

test_false__quadrature_point_values__given_1d_mesh()

AIM: To test the values of quadrature points given a 1d mesh. Compares to that of the points to known value i.e. 0 EXPECTED RESULT: False, given value 2 is weight.

test_false__quadrature_weight_values__given_1d_mesh()

AIM: To test the values of quadrature weights given a 1d mesh. Compares to that of the points to known value i.e. 2 EXPECTED RESULT: False, value given is 0.

test_true__quadrature_point_values__given_1d_mesh()

AIM: To test the values of quadrature points given a 1d mesh. Compares to that of the points to known value i.e. 0 EXPECTED RESULT: True

test_true__quadrature_points_shape__given_1d_mesh()

AIM: To test the shape of quadrature points given a 1d mesh. Compares shape of the points to known value i.e. (1,) EXPECTED RESULT: True

test_true__quadrature_weight_values__given_1d_mesh()

AIM: To test the values of quadrature weights given a 1d mesh. Compares to that of the points to known value i.e. 2 EXPECTED RESULT: True

test_true__quadrature_weights_shape__given_1d_mesh()

AIM: To test the shape of quadrature weights given a 1d mesh. Compares shape of the points to known value i.e. (1,) EXPECTED RESULT: True

class test_quadrature.TestQuadrature2dMesh

Tests given 2D mesh.

test_false__quadrature_weight_values__given_2d_mesh()

AIM: To test the values of quadrature weights given a 2d mesh. Compares to that of the points to known value. EXPECTED RESULT: False, because given value is [2,2,2,2]

test_true__quadrature_point_values__given_2d_mesh()

AIM: To test the values of quadrature points given a 2d mesh. Compares to that of the points to known value. EXPECTED RESULT: True

test_true__quadrature_points_shape__given_2d_mesh()

AIM: To test the shape of quadrature points given a 2d mesh. Compares to that of the points to known value i.e. (4,2) EXPECTED RESULT: True

test_true__quadrature_weight_values__given_2d_mesh()

AIM: To test the values of quadrature weights given a 2d mesh. Compares to that of the points to known value. EXPECTED RESULT: True

test_true__quadrature_weights_shape__given_2d_mesh()

AIM: To test the shape of quadrature weights given a 2d mesh. Compares to that of the points to known value. EXPECTED RESULT: True