Esempio n. 1
0
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 );
}
Esempio n. 2
0
void AddressRangeTest::testSetGetStart()
{
    AddressRange addressRange;
    addressRange.setStart( Start );
    QCOMPARE( addressRange.start(), Start );
}