From: dpasukhi Date: Sun, 13 Sep 2020 09:43:48 +0000 (+0300) Subject: 0030539: Data Exchange - Step file can't be imported (ADT.step) X-Git-Tag: V7_5_0_beta~47 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=c6d45aceb8b55c411fc56179ba89d2384b41a754;p=occt.git 0030539: Data Exchange - Step file can't be imported (ADT.step) Add a test case to verify that the .STEP is read correctly --- diff --git a/tests/bugs/step/bug30539 b/tests/bugs/step/bug30539 new file mode 100644 index 0000000000..afdcd502dd --- /dev/null +++ b/tests/bugs/step/bug30539 @@ -0,0 +1,15 @@ +puts "========================" +puts "0030539: Data Exchange - Step file can't be imported" +puts "========================" + +# Read file +stepread [locate_data_file bug30539.stp] res * + +# Checking +set state [data c] +if { [regexp "32 Entities, of which 3 Root" $state] != 1 } { + puts "Error : wrong count of transferred roots" +} + +checknbshapes res_1 -face 1 -shell 1 -solid 1 +checkshape res_1 f \ No newline at end of file