event.tests.cpp

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <planet/serialise/events.hpp>
#include <felspar/test.hpp>


namespace {


    auto const suite = felspar::testsuite("events");


    auto const serialise = suite.test("serialise", []() {
        planet::serialise::save_buffer ab;

        planet::events::quit q{};
        save(ab, q);

        auto bytes{ab.complete()};
        planet::serialise::load_type<planet::events::quit>(bytes);
    });


}