fix io::path.parent() & update tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user