X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=tst%2Fnet%2FPacketTest.hpp;h=89e15dd526e35982ec69d6630c924cdc3a603e5c;hb=c1da86ebab41895bf49ed747c75ecf722e8c5586;hp=4942a2a228b59908b8ab8d2c82a4315ecfc601d6;hpb=76e18c781bce6ac14768f0d63dee33c3268f1e9b;p=blank.git diff --git a/tst/net/PacketTest.hpp b/tst/net/PacketTest.hpp index 4942a2a..89e15dd 100644 --- a/tst/net/PacketTest.hpp +++ b/tst/net/PacketTest.hpp @@ -6,6 +6,7 @@ #include "world/EntityState.hpp" #include +#include #include #include #include @@ -29,6 +30,9 @@ CPPUNIT_TEST(testPlayerUpdate); CPPUNIT_TEST(testSpawnEntity); CPPUNIT_TEST(testDespawnEntity); CPPUNIT_TEST(testEntityUpdate); +CPPUNIT_TEST(testPlayerCorrection); +CPPUNIT_TEST(testChunkBegin); +CPPUNIT_TEST(testChunkData); CPPUNIT_TEST_SUITE_END(); @@ -45,6 +49,9 @@ public: void testSpawnEntity(); void testDespawnEntity(); void testEntityUpdate(); + void testPlayerCorrection(); + void testChunkBegin(); + void testChunkData(); private: static void AssertPacket( @@ -74,7 +81,8 @@ private: static void AssertEqual( const std::string &message, const glm::vec3 &expected, - const glm::vec3 &actual); + const glm::vec3 &actual, + float epsilon = std::numeric_limits::epsilon()); static void AssertEqual( const std::string &message, const glm::quat &expected,