aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-10 18:57:03 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-10 18:57:03 +0100
commit7cbc577e94ed048f2a8146fab6972ae6ff290be7 (patch)
treebd0d3df10e494bbf05fec8d6ac1b64d5fba27087 /src/test
parentfe865eef33eb78b6dab6a177b463554f2ffe7387 (diff)
fix AudioSystem bug + add regression test
Diffstat (limited to 'src/test')
-rw-r--r--src/test/AudioTest.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/AudioTest.cpp b/src/test/AudioTest.cpp
index 774fdb8..48bba1b 100644
--- a/src/test/AudioTest.cpp
+++ b/src/test/AudioTest.cpp
@@ -150,3 +150,12 @@ TEST_F(AudioTest, PlayOnActive) {
system.update();
}
}
+
+TEST_F(AudioTest, PlayImmediately) {
+ component.play_on_awake = false;
+ component.play();
+
+ EXPECT_CALL(context, play(_)).Times(1);
+
+ system.update();
+}