From cd9f95ce98f6ccd8c6e9ec89d90d1ff3982c19a3 Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 15 Jul 2020 21:26:41 -0300 Subject: [PATCH] Minor changes in remap tests --- src/doc/remap_tests.cpp | 71 +++++++++++++---------------------------- 1 file changed, 23 insertions(+), 48 deletions(-) diff --git a/src/doc/remap_tests.cpp b/src/doc/remap_tests.cpp index 63aa3089d..0a0714194 100644 --- a/src/doc/remap_tests.cpp +++ b/src/doc/remap_tests.cpp @@ -1,4 +1,5 @@ // Aseprite Document Library +// Copyright (c) 2020 Igara Studio S.A. // Copyright (c) 2001-2015 David Capello // // This file is released under the terms of the MIT license. @@ -16,59 +17,33 @@ using namespace doc; +static PalettePicks make(int n, const std::vector& v) +{ + PalettePicks picks(n); + std::fill(picks.begin(), picks.end(), false); + for (int i=0; i& expected) +{ + EXPECT_EQ(map.size(), expected.size()); + for (int i=0; i