MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / testConstructor

Method testConstructor

other_src/ftgl/test/FTSize-Test.cpp:28–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 FTSizeTest(const std::string& name) : CppUnit::TestCase(name) {}
27
28 void testConstructor()
29 {
30 FTSize size;
31
32 CPPUNIT_ASSERT_DOUBLES_EQUAL(0, size.CharSize(), 0.01);
33 CPPUNIT_ASSERT_DOUBLES_EQUAL(0, size.Ascender(), 0.01);
34 CPPUNIT_ASSERT_DOUBLES_EQUAL(0, size.Descender(), 0.01);
35
36 CPPUNIT_ASSERT_DOUBLES_EQUAL(0, size.Height(), 0.01);
37 CPPUNIT_ASSERT_DOUBLES_EQUAL(0, size.Width(), 0.01);
38
39 CPPUNIT_ASSERT_DOUBLES_EQUAL(0, size.Underline(), 0.01);
40
41 }
42
43
44 void testSetCharSize()

Callers

nothing calls this directly

Calls 6

CharSizeMethod · 0.80
HeightMethod · 0.80
WidthMethod · 0.80
UnderlineMethod · 0.80
AscenderMethod · 0.45
DescenderMethod · 0.45

Tested by

no test coverage detected