mirror of
https://github.com/Green-Sky/crdt_tests.git
synced 2025-06-26 14:16:45 +02:00
rename stuff
This commit is contained in:
@ -10,17 +10,17 @@ target_include_directories(crdt_version0 INTERFACE "${PROJECT_SOURCE_DIR}")
|
||||
|
||||
########################################
|
||||
|
||||
add_executable(test1
|
||||
add_executable(v0_test1
|
||||
./test1.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(test1 PUBLIC crdt_version0)
|
||||
target_link_libraries(v0_test1 PUBLIC crdt_version0)
|
||||
|
||||
########################################
|
||||
|
||||
add_executable(test2
|
||||
add_executable(v0_test2
|
||||
./test2.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(test2 PUBLIC crdt_version0)
|
||||
target_link_libraries(v0_test2 PUBLIC crdt_version0)
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include <cassert>
|
||||
|
||||
namespace GreenCRDT {
|
||||
namespace GreenCRDT::V0 {
|
||||
|
||||
template<typename ValueType, typename AgentType>
|
||||
struct List {
|
||||
@ -243,5 +243,5 @@ struct List {
|
||||
}
|
||||
};
|
||||
|
||||
} // GreenCRDT
|
||||
} // GreenCRDT::V0
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
//#include <iostream> // debug
|
||||
|
||||
namespace GreenCRDT {
|
||||
namespace GreenCRDT::V0 {
|
||||
|
||||
template<typename AgentType>
|
||||
struct TextDocument {
|
||||
@ -281,5 +281,5 @@ struct TextDocument {
|
||||
}
|
||||
};
|
||||
|
||||
} // GreenCRDT
|
||||
} // GreenCRDT::V0
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include <crdt/list.hpp>
|
||||
#include <crdt/text_document.hpp>
|
||||
#include <green_crdt/v0/list.hpp>
|
||||
#include <green_crdt/v0/text_document.hpp>
|
||||
|
||||
#include <numeric>
|
||||
#include <random>
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
// single letter agent, for testing only
|
||||
using Agent = char;
|
||||
using DocType = GreenCRDT::TextDocument<Agent>;
|
||||
using DocType = GreenCRDT::V0::TextDocument<Agent>;
|
||||
using ListType = DocType::ListType;
|
||||
|
||||
void testSingle1(void) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include <crdt/text_document.hpp>
|
||||
#include <green_crdt/v0/text_document.hpp>
|
||||
|
||||
#include <numeric>
|
||||
#include <optional>
|
||||
@ -9,8 +9,8 @@
|
||||
|
||||
// single letter agent, for testing only
|
||||
using Agent = char;
|
||||
using Doc = GreenCRDT::TextDocument<Agent>;
|
||||
using Op = GreenCRDT::TextDocument<Agent>::Op;
|
||||
using Doc = GreenCRDT::V0::TextDocument<Agent>;
|
||||
using Op = Doc::Op;
|
||||
using ListType = Doc::ListType;
|
||||
|
||||
// maybe switch it up?
|
||||
|
Reference in New Issue
Block a user