diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-09-09 13:53:43 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-09-09 13:53:43 +0200 |
| commit | dd9fceaae15e4fa597d0ffbaa12bdaeee26ae637 (patch) | |
| tree | 4b0abe774f045f237565c42a980dc58471af86c3 /tests/core/image | |
| parent | 9abc3f67b52860f3fe85bfdbcd3bc014a4651ad5 (diff) | |
Make progressive JPEGs return a proper error
Add progressive JPEG file to test suite and test that loading it returns the expected `Unsupported_Frame_Type` error.
This JPEG variant will hopefully be supported in the future, but we should at least return an error rather than use `unsupported()`.
Diffstat (limited to 'tests/core/image')
| -rw-r--r-- | tests/core/image/test_core_image.odin | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/core/image/test_core_image.odin b/tests/core/image/test_core_image.odin index ca737973d..29b654f84 100644 --- a/tests/core/image/test_core_image.odin +++ b/tests/core/image/test_core_image.odin @@ -5,7 +5,7 @@ List of contributors: Jeroen van Rijn: Initial implementation. - A test suite for PNG, TGA, NetPBM, QOI and BMP. + A test suite for PNG, TGA, NetPBM, QOI, BMP, and JPEG. */ #+feature dynamic-literals package test_core_image @@ -2366,7 +2366,13 @@ run_bmp_suite :: proc(t: ^testing.T, suite: []Test) { Basic_JPG_Tests := []Test{ { "emblem-1024", { - {Default, nil, {1024, 1024, 3, 8}, 0x_46a29e0f}, + {Default, nil, {1024, 1024, 3, 8}, 0x_46a29e0f}, + // {Alpha_Add, nil, {1024, 1024, 4, 8}, 0x_46a29e0f}, + }, + }, + { + "emblem-1024-progressive", { + {Default, .Unsupported_Frame_Type, {1024, 1024, 3, 8}, 0x_46a29e0f}, }, }, } |