- // and also the reverse mapping
- CPPUNIT_ASSERT_EQUAL( 1, m_list->GetColumnOrder(0) );
- CPPUNIT_ASSERT_EQUAL( 2, m_list->GetColumnOrder(1) );
- CPPUNIT_ASSERT_EQUAL( 0, m_list->GetColumnOrder(2) );
-
-
- // finally check that accessors still use indices, not order
- CPPUNIT_ASSERT( m_list->GetColumn(0, li) );
- CPPUNIT_ASSERT_EQUAL( "Column 0", li.GetText() );
-
- li.SetId(0);
- li.SetColumn(1);
- CPPUNIT_ASSERT( m_list->GetItem(li) );
- CPPUNIT_ASSERT_EQUAL( "first in first", li.GetText() );
-
- li.SetId(1);
- li.SetColumn(2);
- CPPUNIT_ASSERT( m_list->GetItem(li) );
- CPPUNIT_ASSERT_EQUAL( "second in second", li.GetText() );