We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7043ee commit f8a75f5Copy full SHA for f8a75f5
test/assets/sound_test.cpp
@@ -6,26 +6,26 @@ using namespace libscratchcpp;
6
7
TEST(SoundTest, Constructors)
8
{
9
- Sound sound("sound1", "a", "svg");
+ Sound sound("sound1", "a", "wav");
10
ASSERT_EQ(sound.id(), "a");
11
ASSERT_EQ(sound.name(), "sound1");
12
- ASSERT_EQ(sound.dataFormat(), "svg");
13
- ASSERT_EQ(sound.fileName(), "a.svg");
+ ASSERT_EQ(sound.dataFormat(), "wav");
+ ASSERT_EQ(sound.fileName(), "a.wav");
14
ASSERT_EQ(sound.rate(), 0);
15
ASSERT_EQ(sound.sampleCount(), 0);
16
}
17
18
TEST(SoundTest, Rate)
19
20
21
22
sound.setRate(2);
23
ASSERT_EQ(sound.rate(), 2);
24
25
26
TEST(SoundTest, SampleCount)
27
28
29
30
sound.setSampleCount(10);
31
ASSERT_EQ(sound.sampleCount(), 10);
0 commit comments