]> OCCT Git - occt.git/commitdiff
0025440: Data Exchange - STEP file with Japanese unicode symbols cannot be read
authordpasukhi <dpasukhi@opencascade.com>
Sun, 13 Sep 2020 08:35:47 +0000 (11:35 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 18 Sep 2020 15:10:02 +0000 (18:10 +0300)
Add a test case to verify that the .STEP is read correctly

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

diff --git a/tests/bugs/step/bug25440 b/tests/bugs/step/bug25440
new file mode 100644 (file)
index 0000000..c316249
--- /dev/null
@@ -0,0 +1,15 @@
+puts "========================"
+puts "0025440: Data Exchange - STEP file with Japanese unicode symbols cannot be read"
+puts "========================"
+
+# Read file
+stepread [locate_data_file bug25440_Assy.stp] res *
+
+# Checking
+set state [data c]
+if { [regexp "1350 Entities, of which 58 Root" $state] != 1 } {
+   puts "Error : wrong count of transferred roots"
+}
+
+checknbshapes res_1 -face 35 -shell 1 -solid 1
+checkshape res_1 f