MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / testAlignmentFor

Method testAlignmentFor

tests/test_core.cpp:207–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206
207 void testAlignmentFor() {
208 QCOMPARE(rcx::alignmentFor(rcx::NodeKind::Hex8), 1);
209 QCOMPARE(rcx::alignmentFor(rcx::NodeKind::Hex16), 2);
210 QCOMPARE(rcx::alignmentFor(rcx::NodeKind::Hex32), 4);
211 QCOMPARE(rcx::alignmentFor(rcx::NodeKind::Hex64), 8);
212 QCOMPARE(rcx::alignmentFor(rcx::NodeKind::Float), 4);
213 QCOMPARE(rcx::alignmentFor(rcx::NodeKind::Double), 8);
214 QCOMPARE(rcx::alignmentFor(rcx::NodeKind::Vec3), 4);
215 QCOMPARE(rcx::alignmentFor(rcx::NodeKind::Mat4x4), 4);
216 QCOMPARE(rcx::alignmentFor(rcx::NodeKind::UTF8), 1);
217 QCOMPARE(rcx::alignmentFor(rcx::NodeKind::UTF16), 2);
218 QCOMPARE(rcx::alignmentFor(rcx::NodeKind::Struct), 1);
219 }
220
221 void testDepthOfCycle() {
222 rcx::NodeTree tree;

Callers

nothing calls this directly

Calls 1

alignmentForFunction · 0.85

Tested by

no test coverage detected