MCPcopy Create free account
hub / github.com/aseprite/laf / TEST

Function TEST

gfx/rect_tests.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20using namespace gfx;
21
22TEST(Rect, Ctor)
23{
24 EXPECT_EQ(Rect(0, 0, 0, 0), Rect());
25 EXPECT_EQ(10, Rect(10, 20, 30, 40).x);
26 EXPECT_EQ(20, Rect(10, 20, 30, 40).y);
27 EXPECT_EQ(30, Rect(10, 20, 30, 40).w);
28 EXPECT_EQ(40, Rect(10, 20, 30, 40).h);
29}
30
31TEST(Rect, Inflate)
32{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected