mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-02 00:00:26 +02:00
Test that minimal triangle returns some mesh
This commit is contained in:
committed by
Josiah VanderZee
parent
7900f0a3a9
commit
a9f56df279
@ -8,10 +8,21 @@ TEST_CASE("load empty gltf file") {
|
||||
irr::IrrlichtDevice* device { irr::createDevice(irr::video::EDT_NULL) };
|
||||
irr::scene::ISceneManager* smgr { device->getSceneManager() };
|
||||
|
||||
irr::io::InMemoryFile filebuf{"test.gltf", ""};
|
||||
irr::io::InMemoryFile filebuf {"test.gltf", ""};
|
||||
|
||||
auto* mesh { smgr->getMesh(&filebuf) };
|
||||
REQUIRE(mesh == nullptr);
|
||||
CHECK(mesh == nullptr);
|
||||
|
||||
device->drop();
|
||||
}
|
||||
|
||||
TEST_CASE("load minimal triangle") {
|
||||
irr::IrrlichtDevice* device { irr::createDevice(irr::video::EDT_NULL) };
|
||||
irr::scene::ISceneManager* smgr { device->getSceneManager() };
|
||||
|
||||
auto* mesh { smgr->getMesh(
|
||||
"source/Irrlicht/tests/assets/minimal_triangle.gltf", "") };
|
||||
REQUIRE(mesh != nullptr);
|
||||
|
||||
device->drop();
|
||||
}
|
||||
|
Reference in New Issue
Block a user