MCPcopy Create free account
hub / github.com/El-EnderJ/NeoCalculator / buildTwoPlusTwoOverTwo

Function buildTwoPlusTwoOverTwo

tests/MathEnginePhaseRegression.cpp:1430–1437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1428 row->calculateLayout(fm);
1429
1430 const int16_t rowYTop = 95;
1431 checkRowChildTopContract(rowNode, rowYTop,
1432 "fraction plus power children stay inside row top contract");
1433}
1434
1435static void testRowTopContractAlignsNestedFractionPowerRows() {
1436 FontMetrics fm = defaultFontMetrics();
1437
1438 auto nestedNumerator = makeRow();
1439 auto* nestedNumeratorRow = static_cast<NodeRow*>(nestedNumerator.get());
1440 nestedNumeratorRow->appendChild(makeNumber("1"));

Calls 6

makeRowFunction · 0.85
makeNumberFunction · 0.85
makeOperatorFunction · 0.85
makeFractionFunction · 0.85
rowWithNumberFunction · 0.85
appendChildMethod · 0.80

Tested by

no test coverage detected