]> OCCT Git - occt.git/commitdiff
0030539: Data Exchange - Step file can't be imported (ADT.step)
authordpasukhi <dpasukhi@opencascade.com>
Sun, 13 Sep 2020 09:43:48 +0000 (12:43 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 18 Sep 2020 15:10:03 +0000 (18:10 +0300)
Add a test case to verify that the .STEP is read correctly

tests/bugs/step/bug30539 [new file with mode: 0644]

diff --git a/tests/bugs/step/bug30539 b/tests/bugs/step/bug30539
new file mode 100644 (file)
index 0000000..afdcd50
--- /dev/null
@@ -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