From 63073e35ce67f9d52865a96e05b555bae6413764 Mon Sep 17 00:00:00 2001 From: mkv Date: Thu, 30 Apr 2015 18:03:47 +0300 Subject: [PATCH] 0025844: Command checkshape does not detect error for case when degenerated edge does not contain geometric representation. --- tests/bugs/modalg_6/bug25844 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/bugs/modalg_6/bug25844 diff --git a/tests/bugs/modalg_6/bug25844 b/tests/bugs/modalg_6/bug25844 new file mode 100644 index 0000000000..74846f65df --- /dev/null +++ b/tests/bugs/modalg_6/bug25844 @@ -0,0 +1,24 @@ +puts "================" +puts "OCC25844" +puts "================" +puts "" +####################################################################### +# Command "checkshape" does not detect error for case when degenerated edge does not contain geometric representation. +####################################################################### + +restore [locate_data_file bug25843_onewire.brep] b + +dlog reset +dlog on + +checkshape b f + +set info [dlog get] +dlog reset +dlog off + +if { [regexp "checkshape failure" ${info}] != 1 } { + puts "Error : Command \"checkshape\" does not detect error for case when degenerated edge does not contain geometric representation." +} else { + puts "OK : Command \"checkshape\" work good" +}