summaryrefslogtreecommitdiff
path: root/src/tests/assets/test_assets.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-03-03 09:11:27 +0100
committerskal <pascal.massimino@gmail.com>2026-03-03 09:11:27 +0100
commite0be1ff83f6da41f37ac806428bcb0ce7f0e4b32 (patch)
treef6a49745b393448ac013ed5225d57c4b71a1edd7 /src/tests/assets/test_assets.cc
parent1423c57065669328f04c6edf808440685bc16b30 (diff)
test(assets): add MP3 asset type test (TEST_MP3/ASSET_TEST_MP3)
Adds a minimal test.mp3 fixture to the test workspace and verifies GetAssetType returns AssetType::MP3 and GetAsset returns non-null data. handoff(Gemini): MP3 asset test added, 34/34 tests passing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/tests/assets/test_assets.cc')
-rw-r--r--src/tests/assets/test_assets.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tests/assets/test_assets.cc b/src/tests/assets/test_assets.cc
index 2ee18d6..c3697d6 100644
--- a/src/tests/assets/test_assets.cc
+++ b/src/tests/assets/test_assets.cc
@@ -178,6 +178,16 @@ int main() {
printf("Procedural Asset test PASSED\n");
+ // Test MP3 asset type
+ printf("\nRunning MP3 Asset type test...\n");
+ AssetType mp3_type = GetAssetType(AssetId::ASSET_TEST_MP3);
+ assert(mp3_type == AssetType::MP3);
+ size_t mp3_size = 0;
+ const uint8_t* mp3_data = GetAsset(AssetId::ASSET_TEST_MP3, &mp3_size);
+ assert(mp3_data != nullptr);
+ assert(mp3_size > 0);
+ printf("MP3 Asset type test: SUCCESS\n");
+
printf("AssetManager test PASSED\n");
return 0;