fix io::path.parent() & update tests

This commit is contained in:
MihailRis
2025-02-04 12:53:05 +03:00
parent a653b063e6
commit e4c33e539e
3 changed files with 12 additions and 8 deletions
+5 -1
View File
@@ -2,9 +2,13 @@
#include "coders/vec3.hpp"
#include "io/io.hpp"
#include "io/devices/StdfsDevice.hpp"
namespace fs = std::filesystem;
TEST(VEC3, Decode) {
io::path file = "res/models/block.vec3";
io::set_device("res", std::make_shared<io::StdfsDevice>(fs::u8path("../../res")));
io::path file = "res:models/block.vec3";
auto bytes = io::read_bytes_buffer(file);
auto model = vec3::load(file.string(), bytes);
}