MCPcopy Create free account
hub / github.com/bwapi/bwapi / TEST_METHOD

Function TEST_METHOD

bwapi/BWAPILIBTest/positionTest.cpp:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 Assert::AreEqual(0, wpos.y);
30 }
31 TEST_METHOD(PositionCtorValue)
32 {
33 Position pos(32, 32);
34 TilePosition tpos(32, 32);
35 WalkPosition wpos(32, 32);
36
37 Assert::AreEqual(32, pos.x);
38 Assert::AreEqual(32, pos.y);
39 Assert::AreEqual(32, tpos.x);
40 Assert::AreEqual(32, tpos.y);
41 Assert::AreEqual(32, wpos.x);
42 Assert::AreEqual(32, wpos.y);
43 }
44 TEST_METHOD(PositionCtorConversion)
45 {
46 // From position

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.80
PositionClass · 0.50
isValidMethod · 0.45

Tested by

no test coverage detected