diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-20 22:00:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-23 00:36:57 +0100 |
| commit | 8efd6f75450037e685d78cc29dcebd82fe922741 (patch) | |
| tree | 7a85267a4ca6a8668b3b23fee8f3ebf7dbb76128 /test | |
| parent | 4481f844c5dc5d84ec63f354f44c54022e101388 (diff) | |
Rename MainSoundConfiguration::to_string() -> as_string().
Trying to be consistent with the rule that to_string is a method which
converts a parameter to a string (implying processing) whereas
as_string is a class member which returns a string representation of
the thing.
Diffstat (limited to 'test')
| -rw-r--r-- | test/cpl_metadata_test.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/cpl_metadata_test.cc b/test/cpl_metadata_test.cc index 2fd7476a..f3e44f46 100644 --- a/test/cpl_metadata_test.cc +++ b/test/cpl_metadata_test.cc @@ -70,7 +70,7 @@ BOOST_AUTO_TEST_CASE (cpl_metadata_bad_values_test) BOOST_AUTO_TEST_CASE (main_sound_configuration_test1) { dcp::MainSoundConfiguration msc("51/L,R,C,LFE,-,-"); - BOOST_CHECK_EQUAL (msc.to_string(), "51/L,R,C,LFE,-,-"); + BOOST_CHECK_EQUAL (msc.as_string(), "51/L,R,C,LFE,-,-"); BOOST_CHECK_EQUAL (msc.channels(), 6); BOOST_CHECK_EQUAL (msc.field(), dcp::MCASoundField::FIVE_POINT_ONE); BOOST_CHECK_EQUAL (msc.mapping(0).get(), dcp::Channel::LEFT); @@ -85,7 +85,7 @@ BOOST_AUTO_TEST_CASE (main_sound_configuration_test1) BOOST_AUTO_TEST_CASE (main_sound_configuration_test2) { dcp::MainSoundConfiguration msc("71/L,R,C,LFE,-,-"); - BOOST_CHECK_EQUAL (msc.to_string(), "71/L,R,C,LFE,-,-"); + BOOST_CHECK_EQUAL (msc.as_string(), "71/L,R,C,LFE,-,-"); BOOST_CHECK_EQUAL (msc.channels(), 6); BOOST_CHECK_EQUAL (msc.field(), dcp::MCASoundField::SEVEN_POINT_ONE); BOOST_CHECK_EQUAL (msc.mapping(0).get(), dcp::Channel::LEFT); @@ -100,7 +100,7 @@ BOOST_AUTO_TEST_CASE (main_sound_configuration_test2) BOOST_AUTO_TEST_CASE (main_sound_configuration_test3) { dcp::MainSoundConfiguration msc("71/L,-,C,LFE,Lss,Rss"); - BOOST_CHECK_EQUAL (msc.to_string(), "71/L,-,C,LFE,Lss,Rss"); + BOOST_CHECK_EQUAL (msc.as_string(), "71/L,-,C,LFE,Lss,Rss"); BOOST_CHECK_EQUAL (msc.channels(), 6); BOOST_CHECK_EQUAL (msc.field(), dcp::MCASoundField::SEVEN_POINT_ONE); BOOST_CHECK_EQUAL (msc.mapping(0).get(), dcp::Channel::LEFT); @@ -115,7 +115,7 @@ BOOST_AUTO_TEST_CASE (main_sound_configuration_test3) BOOST_AUTO_TEST_CASE (main_sound_configuration_test4) { dcp::MainSoundConfiguration msc("71/L,-,C,LFE,Lss,Rss,-,-,-,-,-,-,-,-,-"); - BOOST_CHECK_EQUAL (msc.to_string(), "71/L,-,C,LFE,Lss,Rss,-,-,-,-,-,-,-,-,-"); + BOOST_CHECK_EQUAL (msc.as_string(), "71/L,-,C,LFE,Lss,Rss,-,-,-,-,-,-,-,-,-"); BOOST_CHECK_EQUAL (msc.channels(), 15); BOOST_CHECK_EQUAL (msc.field(), dcp::MCASoundField::SEVEN_POINT_ONE); BOOST_CHECK_EQUAL (msc.mapping(0).get(), dcp::Channel::LEFT); @@ -133,7 +133,7 @@ BOOST_AUTO_TEST_CASE (main_sound_configuration_test4) BOOST_AUTO_TEST_CASE (main_sound_configuration_test5) { dcp::MainSoundConfiguration msc("71/L,-,C,LFE,Lss,Rss,HI,VIN,-,-,Lrs,Rrs,DBOX,FSKSync,SLVS"); - BOOST_CHECK_EQUAL (msc.to_string(), "71/L,-,C,LFE,Lss,Rss,HI,VIN,-,-,Lrs,Rrs,DBOX,FSKSync,SLVS"); + BOOST_CHECK_EQUAL (msc.as_string(), "71/L,-,C,LFE,Lss,Rss,HI,VIN,-,-,Lrs,Rrs,DBOX,FSKSync,SLVS"); BOOST_CHECK_EQUAL (msc.channels(), 15); BOOST_CHECK_EQUAL (msc.field(), dcp::MCASoundField::SEVEN_POINT_ONE); BOOST_CHECK_EQUAL (msc.mapping(0).get(), dcp::Channel::LEFT); |
