MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / test_cell_size

Function test_cell_size

tests/mesh/test-regular-grid.cpp:54–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void test_cell_size( const geode::RegularGrid3D& grid )
55{
56 geode::OpenGeodeMeshException::test(
57 grid.cell_length_in_direction( 0 ) == 1,
58 "Wrong length of cells along X" );
59 geode::OpenGeodeMeshException::test(
60 grid.cell_length_in_direction( 1 ) == 2,
61 "Wrong length of cells along Y" );
62 geode::OpenGeodeMeshException::test(
63 grid.cell_length_in_direction( 2 ) == 3,
64 "Wrong length of cells along Z" );
65 geode::OpenGeodeMeshException::test(
66 grid.cell_size() == 6, "Wrong cell size" );
67}
68
69void test_cell_index( const geode::RegularGrid3D& grid )
70{

Callers

nothing calls this directly

Calls 3

testFunction · 0.70
cell_sizeMethod · 0.45

Tested by

no test coverage detected