]> OCCT Git - occt-copy.git/commitdiff
0025486: STEP file containing ASCII control character cannot be read CR25486
authordpasukhi <dpasukhi@opencascade.com>
Mon, 19 Oct 2020 10:16:09 +0000 (13:16 +0300)
committerdpasukhi <dpasukhi@opencascade.com>
Mon, 19 Oct 2020 10:16:09 +0000 (13:16 +0300)
Add a check for correct reading of a STEP file with a "SUB" symbol

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

diff --git a/tests/bugs/step/bug25486 b/tests/bugs/step/bug25486
new file mode 100644 (file)
index 0000000..454aa00
--- /dev/null
@@ -0,0 +1,16 @@
+puts "==================================================="
+puts " 0025486: STEP file containing ASCII control character cannot be read"
+puts "==================================================="
+puts ""
+
+pload DCAF
+
+# Read file
+ReadStep D [locate_data_file bug25486_badsymbol.stp]
+XGetOneShape res D
+
+# Checking
+checkshape res
+checknbshapes res -vertex 8 -edge 12 -face 6 -wire 6 -compound 0
+
+Close D
\ No newline at end of file