diff --git a/src/db/unit_tests/dbGDS2Writer.cc b/src/db/unit_tests/dbGDS2Writer.cc index 7c4f37358..b1f6f1246 100644 --- a/src/db/unit_tests/dbGDS2Writer.cc +++ b/src/db/unit_tests/dbGDS2Writer.cc @@ -1145,3 +1145,11 @@ TEST(121) opt.max_vertex_count = 4; run_test (_this, "t121.oas.gz", "t121_au.gds.gz", true, opt); } + +// Extreme fracturing by max. points +TEST(166) +{ + db::GDS2WriterOptions opt; + opt.max_vertex_count = 4; + run_test (_this, "t166.oas.gz", "t166_au.gds.gz", true, opt); +} diff --git a/testdata/gds/bug_166.oas.gz b/testdata/gds/bug_166.oas.gz new file mode 100644 index 000000000..3a209870a Binary files /dev/null and b/testdata/gds/bug_166.oas.gz differ diff --git a/testdata/gds/bug_166_au.gds.gz b/testdata/gds/bug_166_au.gds.gz new file mode 100644 index 000000000..7766ef28e Binary files /dev/null and b/testdata/gds/bug_166_au.gds.gz differ