コード例 #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 );
}
コード例 #2
0
void AddressRangeTest::testSetGetEnd()
{
    AddressRange addressRange;
    addressRange.setEnd( End );
    QCOMPARE( addressRange.end(), End );
}