CPPUNIT_ASSERT_EQUAL( QString( "Linux" ), m_normal->boardName() );
CPPUNIT_ASSERT_EQUAL( QString::null, m_noboard->boardName() );
}
+
+void ThreadTest::testBoardURL()
+{
+ CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/linux/" ), m_normal->boardURL().url() );
+ CPPUNIT_ASSERT_EQUAL( QString::null, m_noboard->boardURL().url() ); // TODO: should be "http://pc.2ch.net/linux"
+}
+
+void ThreadTest::testBoardID()
+{
+ CPPUNIT_ASSERT_EQUAL( QString( "linux" ), m_normal->boardID() );
+ CPPUNIT_ASSERT_EQUAL( QString::null, m_noboard->boardID() ); // TODO: should be "linux"
+}
CPPUNIT_TEST( testResNum );
CPPUNIT_TEST( testName );
CPPUNIT_TEST( testBoardName );
+ CPPUNIT_TEST( testBoardURL );
+ CPPUNIT_TEST( testBoardID );
CPPUNIT_TEST_SUITE_END();
Kita::Thread *m_normal, *m_noboard;
void testResNum();
void testName();
void testBoardName();
+ void testBoardURL();
+ void testBoardID();
};
#endif