Enhance save as template and new from template dialogs
[inkscape.git] / testfiles / src / sp-glyph-kerning-test.cpp
blob2c737ee7274408752cab3515d7bc9ec1cf9e11d0
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /** @file
3 * SPGlyphKerning test
4 *//*
6 * Authors:
7 * Cosmin Dancu
9 * Copyright (C) 2020 Authors
11 * Released under GNU GPL version 2 or later, read the file 'COPYING' for more information
14 #include <gtest/gtest.h>
15 #include <src/object/sp-glyph-kerning.h>
17 TEST(SPGlyphKerningTest, EmptyGlyphNamesDoNotContainAnything) {
18 GlyphNames empty_glyph_names(nullptr);
19 ASSERT_FALSE(empty_glyph_names.contains("foo"));
22 TEST(SPGlyphKerningTest, GlyphNamesContainEachName) {
23 GlyphNames glyph_names("name1 name2");
24 ASSERT_TRUE(glyph_names.contains("name1"));
25 ASSERT_TRUE(glyph_names.contains("name2"));