#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 <cstdint>
+#include <limits>
#include <string>
#include <SDL_net.h>
#include <glm/glm.hpp>
CPPUNIT_TEST_SUITE(PacketTest);
+CPPUNIT_TEST(testSizes);
CPPUNIT_TEST(testControl);
CPPUNIT_TEST(testPing);
CPPUNIT_TEST(testLogin);
CPPUNIT_TEST(testPlayerCorrection);
CPPUNIT_TEST(testChunkBegin);
CPPUNIT_TEST(testChunkData);
+CPPUNIT_TEST(testBlockUpdate);
+CPPUNIT_TEST(testMessage);
CPPUNIT_TEST_SUITE_END();
void setUp();
void tearDown();
+ void testSizes();
void testControl();
void testPing();
void testLogin();
void testPlayerCorrection();
void testChunkBegin();
void testChunkData();
+ void testBlockUpdate();
+ void testMessage();
private:
static void AssertPacket(
static void AssertEqual(
const std::string &message,
const glm::vec3 &expected,
- const glm::vec3 &actual);
+ const glm::vec3 &actual,
+ float epsilon = std::numeric_limits<float>::epsilon());
static void AssertEqual(
const std::string &message,
const glm::quat &expected,