Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
test_nodedef.cpp File Reference
#include "gamedef.h"
#include "nodedef.h"
#include "network/networkprotocol.h"
#include <catch.h>
#include <ios>
#include <sstream>
+ Include dependency graph for test_nodedef.cpp:

Functions

 TEST_CASE ("Given a node definition, " "when we serialize and then deserialize it, " "then the deserialized one should be equal to the original.", "[nodedef]")
 

Function Documentation

◆ TEST_CASE()

TEST_CASE ( "Given a node definition,
" "when we serialize and then deserialize it,
" "then the deserialized one should be equal to the original." ,
"" [nodedef] )

References CHECK, ContentFeatures::deSerialize(), ContentFeatures::is_ground_content, LATEST_PROTOCOL_VERSION, ContentFeatures::name, ContentFeatures::node_box, ContentFeatures::serialize(), ContentFeatures::tiledef, NodeBox::type, and ContentFeatures::walkable.

+ Here is the call graph for this function: