X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=tst%2Fnet%2FPacketTest.hpp;h=25256d9906dc823e6771d55a87306e6b26b524f7;hb=4fbf5a3c1b0e530706023f5fc4be2f68d30ea645;hp=119c696de39b79159b525bb82ef5000336c7d70b;hpb=1709d12eb27ecf7626d724a3fc14096a93f3cb4c;p=blank.git diff --git a/tst/net/PacketTest.hpp b/tst/net/PacketTest.hpp index 119c696..25256d9 100644 --- a/tst/net/PacketTest.hpp +++ b/tst/net/PacketTest.hpp @@ -1,11 +1,12 @@ #ifndef BLANK_TEST_NET_PACKETTEST_HPP_ #define BLANK_TEST_NET_PACKETTEST_HPP_ -#include "model/geometry.hpp" +#include "geometry/primitive.hpp" #include "net/Packet.hpp" #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); @@ -32,6 +34,8 @@ CPPUNIT_TEST(testEntityUpdate); CPPUNIT_TEST(testPlayerCorrection); CPPUNIT_TEST(testChunkBegin); CPPUNIT_TEST(testChunkData); +CPPUNIT_TEST(testBlockUpdate); +CPPUNIT_TEST(testMessage); CPPUNIT_TEST_SUITE_END(); @@ -39,6 +43,7 @@ public: void setUp(); void tearDown(); + void testSizes(); void testControl(); void testPing(); void testLogin(); @@ -51,6 +56,8 @@ public: void testPlayerCorrection(); void testChunkBegin(); void testChunkData(); + void testBlockUpdate(); + void testMessage(); private: static void AssertPacket( @@ -80,7 +87,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,