From 65b1a3eac2c2187035361ad53403e22aeb0ea91c Mon Sep 17 00:00:00 2001 From: elad laufer Date: Tue, 18 Feb 2020 11:09:18 +0200 Subject: [PATCH] - add test case --- test/test-suite/test_foreign.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test-suite/test_foreign.py b/test/test-suite/test_foreign.py index 6cc6c792..f07c8812 100644 --- a/test/test-suite/test_foreign.py +++ b/test/test-suite/test_foreign.py @@ -261,9 +261,11 @@ class TestForeign: # higher Q should mean a bigger buffer q10 = im.jpegsave_buffer(Q=10) q10_subsample_off = im.jpegsave_buffer(Q=10, subsample_mode=2) + q10_subsample_no = im.jpegsave_buffer(Q=10, no_subsample=1) q90 = im.jpegsave_buffer(Q=90) assert len(q90) > len(q10) assert len(q10_subsample_off) > len(q10) + assert len(q10_subsample_off) == len(q10_subsample_no) # force subsampling should result in smaller buffer q90_subsample_on = im.jpegsave_buffer(Q=90, subsample_mode=1)