File indexing completed on 2024-12-22 04:10:15

0001 /*
0002  *  SPDX-FileCopyrightText: 2014 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #include "kis_fill_interval_test.h"
0008 
0009 #include <simpletest.h>
0010 
0011 #include <floodfill/kis_fill_interval.h>
0012 
0013 void KisFillIntervalTest::testIsValid()
0014 {
0015     KisFillInterval i1;
0016     QVERIFY(!i1.isValid());
0017 
0018     KisFillInterval i2(0,1,0);
0019     QVERIFY(i2.isValid());
0020 
0021     i2.invalidate();
0022     QVERIFY(!i2.isValid());
0023 }
0024 
0025 SIMPLE_TEST_MAIN(KisFillIntervalTest)