Start adding config reader
This commit is contained in:
parent
6ff9370c4e
commit
cbc9ba77d2
14 changed files with 245 additions and 143 deletions
|
@ -11,6 +11,7 @@ list(APPEND TestFiles
|
|||
audio/TestAudioWriter.cpp
|
||||
audio/TestMidiReader.cpp
|
||||
core/TestBinaryStream.cpp
|
||||
core/TestTomlReader.cpp
|
||||
compiler/TestLexer.cpp
|
||||
compression/TestStreamCompressor.cpp
|
||||
database/TestDatabase.cpp
|
||||
|
|
12
test/core/TestTomlReader.cpp
Normal file
12
test/core/TestTomlReader.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include "TomlReader.h"
|
||||
|
||||
#include <filesystem>
|
||||
|
||||
int main()
|
||||
{
|
||||
const auto data_loc = std::filesystem::path(__FILE__) / "../data";
|
||||
const auto sample_toml_file = data_loc / "sample_toml.toml";
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
4
test/data/sample_toml.toml
Normal file
4
test/data/sample_toml.toml
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
[themes]
|
||||
location = "../personal-site-themes"
|
||||
active_theme = "basic"
|
Loading…
Add table
Add a link
Reference in a new issue