Skip to content

Commit e18523c

Browse files
committed
Test audio only constructor
- Strange / unexpected / probably wrong behavior; this tests needs to be expanded once there's a clear API
1 parent c79ded2 commit e18523c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/Frame_Tests.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@ TEST(ImageOnly_Constructor)
7272
// CHECK(f.CheckPixel(0, 0, 0xFA, 0xFB, 0xFC, 0, 0));
7373
}
7474

75+
TEST(AudioOnly_Constructor)
76+
{
77+
Frame f(42, 100, 1);
78+
CHECK_EQUAL(1, f.GetHeight());
79+
CHECK_EQUAL(1, f.GetWidth());
80+
CHECK_EQUAL(44100, f.SampleRate());
81+
CHECK_EQUAL(1, f.GetAudioChannelsCount());
82+
83+
// CHECK_EQUAL(true, f.has_audio_data); // TODO: This would be expected?
84+
}
85+
7586
TEST(GetImage)
7687
{
7788
Frame f1;

0 commit comments

Comments
 (0)