qt6-bb10/tests/auto/gui/image/qimagereader
Marc Mutz 29d07101e5 tst_QImageReader: it's a rotate^Wadjacent_find!
Instead of copying a list, sorting it just to check it's sorted, and
making a QSet out of it just to check the size is the same as that of
the list (thereby checking there were no duplicates), simply apply
adjacent_find with greater_equal. If none of the elements is ≥ their
successor, that means all elements are < their successor, and _that_
means the range is sorted and has no duplicates.               q.e.d.

Pick-to: 6.6 6.5
Change-Id: Id73c674ad4e29117370e8fc6af9fdfc690a3fba9
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2023-08-10 06:44:59 +02:00
..
baseline Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
images Fix buffer overflow 2020-07-10 22:55:28 +02:00
.gitignore Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
BLACKLIST tests: blacklist tst_QImageReader::setClipRect() and 2023-03-24 10:49:16 +01:00
CMakeLists.txt CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
android_testdata.qrc Android: Fix QImageReader test 2015-01-16 09:27:15 +01:00
tst_qimagereader.cpp tst_QImageReader: it's a rotate^Wadjacent_find! 2023-08-10 06:44:59 +02:00