1 // SPDX-License-Identifier: GPL-2.0-or-later
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"));