File indexing completed on 2024-12-22 04:12:01
0001 /* 0002 * SPDX-FileCopyrightText: 2018 boud <boud@valdyas.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #include "TestResource.h" 0007 0008 #include <simpletest.h> 0009 0010 #include "DummyResource.h" 0011 0012 void TestResource::testCopyResource() 0013 { 0014 DummyResource r1("filename"); 0015 DummyResource r2(r1); 0016 QCOMPARE(r1.filename(), r2.filename()); 0017 r2.setFilename("other"); 0018 QVERIFY(r1.filename() == "filename"); 0019 QVERIFY(r2.filename() == "other"); 0020 } 0021 0022 SIMPLE_TEST_MAIN(TestResource)