void AddressRangeTest::testSetGetWidth() { AddressRange addressRange; // end, width by width addressRange.setStart( Start ); addressRange.setEndByWidth( Width ); QCOMPARE( addressRange.end(), End ); QCOMPARE( addressRange.width(), Width ); // start, width by width addressRange.setEnd( End ); addressRange.setStartByWidth( Width ); QCOMPARE( addressRange.start(), Start ); QCOMPARE( addressRange.width(), Width ); }
void AddressRangeTest::testSetGetStart() { AddressRange addressRange; addressRange.setStart( Start ); QCOMPARE( addressRange.start(), Start ); }