diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-11-29 21:09:33 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-11-29 21:09:33 +0300 |
commit | 62d52b597d6a9cf4ed7ef0782fad8ca5eca24aa0 (patch) | |
tree | e6cf0ac8a92f7a26b5bc36ee821add9741042fd8 /src/tests | |
parent | 8e07de9d952f8f27273296f1b6ae58550ce1e98b (diff) | |
download | revela-62d52b597d6a9cf4ed7ef0782fad8ca5eca24aa0.tar.gz revela-62d52b597d6a9cf4ed7ef0782fad8ca5eca24aa0.zip |
config: blur setting for thumbnails/images
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/config.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tests/config.c b/src/tests/config.c index 8d86a2f..64a4da8 100644 --- a/src/tests/config.c +++ b/src/tests/config.c @@ -1,8 +1,9 @@ #include <string.h> +#include <math.h> -#include "tests/tests.h" -#include "config.h" #include "log.h" +#include "config.h" +#include "tests/tests.h" #define TESTS_DIR "tests" #define TEST_ALBUM "tests/album.ini" @@ -20,11 +21,13 @@ test_site_config_read_ini(void) asserteq(config->images.max_width, 3000); asserteq(config->images.max_height, 2000); asserteq(config->images.smart_resize, true); + asserteq(fabs(config->images.blur - 0.0) < 0.0001, true); asserteq(config->thumbnails.strip, true); asserteq(config->thumbnails.quality, 75); asserteq(config->thumbnails.max_width, 400); asserteq(config->thumbnails.max_height, 270); asserteq(config->thumbnails.smart_resize, true); + asserteq(fabs(config->thumbnails.blur - 0.1) < 0.0001, true); site_config_destroy(config); } |