From 7aae9cbf21872804b29c72e753850aca387ffe7c Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Sat, 26 Apr 2025 15:30:13 +0200 Subject: Tests --- runtime.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/runtime.c b/runtime.c index 73a1ac8..09cf7a1 100644 --- a/runtime.c +++ b/runtime.c @@ -720,11 +720,11 @@ i64 network_send(u16 slot, Network_Address address, i64 len, u8 *data, u16 *loca // Data formats b8 bmp_read_from_memory(i64 *width, i64 *height, i64 colors_len, vec4_f32 *colors, i64 src_len, u8 *src); -b8 bmp_write_to_memory(i64 *dst_len, u8 *dst, i64 width, i64 height, i64 stride, vec4_f32 *colors); +b8 bmp_write_to_memory (i64 *dst_len, u8 *dst, i64 width, i64 height, i64 stride, vec4_f32 *colors); b8 ppm_read_from_memory(i64 *width, i64 *height, i64 colors_len, vec4_f32 *colors, i64 src_len, u8 *src); -b8 ppm_write_to_memory(i64 *dst_len, u8 *dst, i64 width, i64 height, i64 stride, vec4_f32 *colors); +b8 ppm_write_to_memory (i64 *dst_len, u8 *dst, i64 width, i64 height, i64 stride, vec4_f32 *colors); b8 wav_read_from_memory(i64 *num_channels, i64 *sample_rate, i64 *num_samples, i64 frames_len, f32 *frames, i64 src_len, u8 *src); -b8 wav_write_to_memory(i64 *dst_len, u8 *dst, i64 num_channels, i64 sample_rate, i64 num_samples, f32 *frames); +b8 wav_write_to_memory (i64 *dst_len, u8 *dst, i64 num_channels, i64 sample_rate, i64 num_samples, f32 *frames); // Dynamic libraries void dynamic_library_open (u16 slot, c8 *name); @@ -5426,6 +5426,18 @@ TEST("average frame duration") { REQUIRE_EQ(average_frame_duration_(100), 100); } +TEST("BMP image") { + // TODO +} + +TEST("PPM image") { + // TODO +} + +TEST("WAV audio") { + // TODO +} + #undef TEST_FILE #endif // ENABLE_TESTING -- cgit v1.2.3