{
m_normal = new Board( KURL( "http://pc.2ch.net/linux/"), "Linux" );
- m_share1 = Board::getByURL( "http://pc.2ch.net/linux/", "Linux" );
- m_share2 = Board::getByURL( "http://pc.2ch.net/linux/", "Linux" );
+ Board::setName( "http://pc.2ch.net/linux/", "Linux" );
+ m_share1 = Board::getByURL( "http://pc.2ch.net/linux/" );
+
+ Board::setName( "http://pc.2ch.net/unix/", "U**x" );
+ m_share2 = Board::getByURL( "http://pc.2ch.net/unix/" );
+
+ Board::setName( "http://pc.2ch.net/unix/", "Unix" );
+ m_share3 = Board::getByURL( "http://pc.2ch.net/unix/" );
m_null = Board::getByURL( QString::null );
}
{
CPPUNIT_ASSERT_EQUAL( QString( "linux" ), m_normal->id() );
CPPUNIT_ASSERT_EQUAL( QString( "linux" ), m_share1->id() );
- CPPUNIT_ASSERT_EQUAL( QString( "linux" ), m_share2->id() );
+ CPPUNIT_ASSERT_EQUAL( QString( "unix" ), m_share2->id() );
+ CPPUNIT_ASSERT_EQUAL( QString( "unix" ), m_share3->id() );
CPPUNIT_ASSERT_EQUAL( QString::null, m_null->id() );
}
{
CPPUNIT_ASSERT_EQUAL( QString( "Linux" ), m_normal->name() );
CPPUNIT_ASSERT_EQUAL( QString( "Linux" ), m_share1->name() );
- CPPUNIT_ASSERT_EQUAL( QString( "Linux" ), m_share2->name() );
+ CPPUNIT_ASSERT_EQUAL( QString( "U**x" ), m_share2->name() );
+ CPPUNIT_ASSERT_EQUAL( QString( "Unix" ), m_share3->name() );
CPPUNIT_ASSERT_EQUAL( QString::null, m_null->name() );
}
m_normal->subjectTxtURL().url() );
CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/linux/subject.txt" ),
m_share1->subjectTxtURL().url() );
- CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/linux/subject.txt" ),
+ CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/unix/subject.txt" ),
m_share2->subjectTxtURL().url() );
+ CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/unix/subject.txt" ),
+ m_share3->subjectTxtURL().url() );
CPPUNIT_ASSERT_EQUAL( QString::null, m_null->subjectTxtURL().url() );
}
m_normal->url().url() );
CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/linux/"),
m_share1->url().url() );
- CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/linux/"),
+ CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/unix/"),
m_share2->url().url() );
+ CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/unix/"),
+ m_share3->url().url() );
CPPUNIT_ASSERT_EQUAL( QString::null, m_null->url().url() );
}