⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ftchartoglyphindexmap-test.cpp

📁 ftgl-2.1.2 夸平台的opengl显示字体
💻 CPP
字号:
#include <cppunit/extensions/HelperMacros.h>#include <cppunit/TestCaller.h>#include <cppunit/TestCase.h>#include <cppunit/TestSuite.h>#include "FTCharToGlyphIndexMap.h"class FTCharToGlyphIndexMapTest : public CppUnit::TestCase{    CPPUNIT_TEST_SUITE( FTCharToGlyphIndexMapTest);        CPPUNIT_TEST( testConstructor);        CPPUNIT_TEST( testInsert);        CPPUNIT_TEST( testClear);    CPPUNIT_TEST_SUITE_END();            public:        FTCharToGlyphIndexMapTest() : CppUnit::TestCase( "FTCharToGlyphIndexMap Test")        {}                FTCharToGlyphIndexMapTest( const std::string& name) : CppUnit::TestCase(name) {}        void testConstructor()        {            FTCharToGlyphIndexMap testMap;                        CPPUNIT_ASSERT( testMap.find( 2) == 0);            CPPUNIT_ASSERT( testMap.find( 5) == 0);        }                void testInsert()        {            FTCharToGlyphIndexMap testMap;                        testMap.insert( 2, 37);                        CPPUNIT_ASSERT( testMap.find( 2) == 37);            CPPUNIT_ASSERT( testMap.find( 5) == 0);        }                void testClear()        {            FTCharToGlyphIndexMap testMap;                        testMap.insert( 2, 37);            testMap.clear();                        CPPUNIT_ASSERT( testMap.find( 2) == 0);            CPPUNIT_ASSERT( testMap.find( 5) == 0);        }                        void setUp()         {}                        void tearDown()         {}            private:};CPPUNIT_TEST_SUITE_REGISTRATION( FTCharToGlyphIndexMapTest);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -