From 4661dcadd4b278db10b80438b51b2c9e2cb284c2 Mon Sep 17 00:00:00 2001 From: dpasukhi Date: Sun, 13 Sep 2020 13:23:00 +0300 Subject: [PATCH] 0025171: Data Exchange - STEP Lexer - the strings with quote sign inside can't be properly lexed Add a test case to verify that the .STEP is read correctly --- tests/bugs/step/bug25171 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/bugs/step/bug25171 diff --git a/tests/bugs/step/bug25171 b/tests/bugs/step/bug25171 new file mode 100644 index 0000000000..a43b8b4e2f --- /dev/null +++ b/tests/bugs/step/bug25171 @@ -0,0 +1,15 @@ +puts "========================" +puts "0025171: STEP Lexer - the strings with quote sign inside can't be properly lexed" +puts "========================" + +# Read file +stepread [locate_data_file bug25171.stp] res * + +# Checking +set state [data c] +if { [regexp "6425 Entities, of which 65 Root" $state] != 1 } { + puts "Error : wrong count of transferred roots" +} + +checknbshapes res_1 -face 53 -shell 5 -solid 5 +checkshape res_1 f