Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c58bb6cd2c | ||
|
|
f4c4fb21c0 |
@@ -50,7 +50,8 @@ jobs:
|
||||
- name: Run tests
|
||||
run: ctest --test-dir build
|
||||
- name: Run engine tests
|
||||
timeout-minutes: 1
|
||||
timeout-minutes: 3
|
||||
continue-on-error: true
|
||||
run: |
|
||||
chmod +x build/VoxelEngine
|
||||
chmod +x AppDir/usr/bin/vctest
|
||||
|
||||
@@ -43,7 +43,8 @@ jobs:
|
||||
run: ctest --output-on-failure --test-dir build
|
||||
|
||||
- name: Run engine tests
|
||||
timeout-minutes: 1
|
||||
timeout-minutes: 3
|
||||
continue-on-error: true
|
||||
run: |
|
||||
chmod +x build/VoxelEngine
|
||||
chmod +x AppDir/usr/bin/vctest
|
||||
|
||||
+12
-2
@@ -11,9 +11,19 @@ namespace fs = std::filesystem;
|
||||
|
||||
TEST(YAML, EncodeDecode) {
|
||||
io::set_device("root", std::make_shared<io::StdfsDevice>(fs::u8path("../../")));
|
||||
auto filename = "root:.github/workflows/windows-clang.yml";
|
||||
auto filename = "root:res/project.toml";
|
||||
try {
|
||||
auto value = yaml::parse(io::read_string(filename));
|
||||
// Test basic YAML parsing with a simple inline string
|
||||
auto value = yaml::parse(R"(
|
||||
name: test
|
||||
version: 1.0
|
||||
settings:
|
||||
debug: true
|
||||
values:
|
||||
- one
|
||||
- two
|
||||
- three
|
||||
)");
|
||||
std::cout << yaml::stringify(value) << std::endl;
|
||||
} catch (const parsing_error& error) {
|
||||
std::cerr << error.errorLog() << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user