Esempio n. 1
0
 void testConstructWithPhrase()
 {
     Lyric lyric = Lyric( "は", "h a" );
     CPPUNIT_ASSERT_EQUAL( string( "は" ), lyric.phrase );
     CPPUNIT_ASSERT_EQUAL( string( "h a" ), lyric.getPhoneticSymbol() );
     CPPUNIT_ASSERT_EQUAL(string("64,0" ), lyric.getConsonantAdjustment());
     CPPUNIT_ASSERT( false == lyric.isProtected );
 }
Esempio n. 2
0
 void testGetConsonantAdjustment()
 {
     Lyric lyric = Lyric( "は,h a,1,64,0,0" );
     string actual = lyric.getConsonantAdjustment();
     CPPUNIT_ASSERT_EQUAL(string("64,0"), actual);
 }
Esempio n. 3
0
 void testSetConsonantAdjustment() {
     Lyric lyric = Lyric("は,h a,1,64,0,0");
     lyric.setConsonantAdjustment("61,0");
     CPPUNIT_ASSERT_EQUAL(string("61,0"), lyric.getConsonantAdjustment());
 }