Test more fields
This commit is contained in:
parent
0b86408637
commit
52d5c5598d
|
@ -306,7 +306,7 @@ void CliTests::testHandlingOfTargets()
|
|||
}
|
||||
|
||||
/*!
|
||||
* \brief Tests ID3v1/D3v2/MP3 specific options.
|
||||
* \brief Tests ID3v1/D3v2/MP3 specific options and some more fields.
|
||||
*/
|
||||
void CliTests::testId3SpecificOptions()
|
||||
{
|
||||
|
@ -356,8 +356,8 @@ void CliTests::testId3SpecificOptions()
|
|||
CPPUNIT_ASSERT_EQUAL(0, remove(mp3File1Backup.data()));
|
||||
|
||||
// convert remaining ID3v2 tag to version 2, add an ID3v1 tag again and set a field with unicode char by the way
|
||||
const char *const args3[] = { "tageditor", "set", "album=Dóuble Nickels On The Dime", "track=5/10", "--id3v1-usage", "always", "--id3v2-version",
|
||||
"2", "--id3-init-on-create", "-f", mp3File1.data(), nullptr };
|
||||
const char *const args3[] = { "tageditor", "set", "album=Dóuble Nickels On The Dime", "track=5/10", "disk=2/3", "duration=1:45:15",
|
||||
"--id3v1-usage", "always", "--id3v2-version", "2", "--id3-init-on-create", "-f", mp3File1.data(), nullptr };
|
||||
CPPUNIT_ASSERT_EQUAL(0, execApp(args3, stdout, stderr));
|
||||
CPPUNIT_ASSERT_EQUAL(0, execApp(args1, stdout, stderr));
|
||||
CPPUNIT_ASSERT(testContainsSubstrings(stdout,
|
||||
|
@ -377,7 +377,8 @@ void CliTests::testId3SpecificOptions()
|
|||
" Year 1984\n"
|
||||
" Comment ExactAudioCopy v0.95b4\n"
|
||||
" Track 5/10\n"
|
||||
" Duration 00:00:00\n"
|
||||
" Disk 2/3\n"
|
||||
" Duration 01:45:15\n"
|
||||
" Encoder settings LAME 64bits version 3.99 (http://lame.sf.net)" }));
|
||||
CPPUNIT_ASSERT_EQUAL(0, remove(mp3File1.data()));
|
||||
CPPUNIT_ASSERT_EQUAL(0, remove(mp3File1Backup.data()));
|
||||
|
|
Loading…
Reference in New Issue