More work on table diff xmit

This commit is contained in:
2021-09-07 14:38:46 -04:00
parent 5cefa4f1e2
commit 2165bb578c
3 changed files with 74 additions and 13 deletions

View File

@@ -59,7 +59,7 @@ World::World(util::WorldType wt) {
// Create the globaldb in the registry.
LS.rawset(LuaRegistry, "globaldb", LuaNewTable);
// Initialize the SourceDB. At this stage, the sourcedb is
// empty, so it's just populating the lua builtins.
source_db_.init(state());
@@ -1072,7 +1072,7 @@ static bool worlds_identical(const std::unique_ptr<World> &w1, const std::unique
return sbw1.contents_equal(&sbw2);
}
LuaDefine(unittests_world, "c") {
LuaDefine(unittests_worlddiffs, "c") {
std::unique_ptr<World> m, ss, cs;
StreamBuffer sb;
int ncreate;
@@ -1188,4 +1188,4 @@ LuaDefine(unittests_world, "c") {
LuaAssert(L, worlds_identical(ss, cs));
return 0;
}
}