diff options
Diffstat (limited to 'tests/tester.cc')
-rw-r--r-- | tests/tester.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/tester.cc b/tests/tester.cc index 5c31cc9..4a97f86 100644 --- a/tests/tester.cc +++ b/tests/tester.cc @@ -643,6 +643,23 @@ TEST_CASE("norm_texopts", "[norm]") { } +TEST_CASE("zero-face-idx-value", "[Issue140]") { + tinyobj::attrib_t attrib; + std::vector<tinyobj::shape_t> shapes; + std::vector<tinyobj::material_t> materials; + + std::string err; + bool ret = tinyobj::LoadObj(&attrib, &shapes, &materials, &err, "../models/issue-140-zero-face-idx.obj", gMtlBasePath); + + + if (!err.empty()) { + std::cerr << err << std::endl; + } + REQUIRE(false == ret); + REQUIRE(!err.empty()); + +} + #if 0 int main( |