X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=tst%2Fnet%2FPacketTest.hpp;h=32976c8429ba61e8f709c0cb8d76c62b4f0456fc;hb=b6effe22f680573c3ebcbad2674a08379c182b27;hp=618df1e68d9d75fe3eb8b6377a71473b188ec55a;hpb=b127256b13f5a07ec6170b333c6dd0c46531cf21;p=blank.git diff --git a/tst/net/PacketTest.hpp b/tst/net/PacketTest.hpp index 618df1e..32976c8 100644 --- a/tst/net/PacketTest.hpp +++ b/tst/net/PacketTest.hpp @@ -6,6 +6,7 @@ #include "world/EntityState.hpp" #include +#include #include #include #include @@ -20,6 +21,7 @@ class PacketTest CPPUNIT_TEST_SUITE(PacketTest); +CPPUNIT_TEST(testSizes); CPPUNIT_TEST(testControl); CPPUNIT_TEST(testPing); CPPUNIT_TEST(testLogin); @@ -28,6 +30,11 @@ CPPUNIT_TEST(testPart); CPPUNIT_TEST(testPlayerUpdate); CPPUNIT_TEST(testSpawnEntity); CPPUNIT_TEST(testDespawnEntity); +CPPUNIT_TEST(testEntityUpdate); +CPPUNIT_TEST(testPlayerCorrection); +CPPUNIT_TEST(testChunkBegin); +CPPUNIT_TEST(testChunkData); +CPPUNIT_TEST(testBlockUpdate); CPPUNIT_TEST_SUITE_END(); @@ -35,6 +42,7 @@ public: void setUp(); void tearDown(); + void testSizes(); void testControl(); void testPing(); void testLogin(); @@ -43,6 +51,11 @@ public: void testPlayerUpdate(); void testSpawnEntity(); void testDespawnEntity(); + void testEntityUpdate(); + void testPlayerCorrection(); + void testChunkBegin(); + void testChunkData(); + void testBlockUpdate(); private: static void AssertPacket( @@ -72,7 +85,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,