0014531: Boolean Operation Algorithm fails
[occt.git] / tests / bugs / demo / bug25344_4
CommitLineData
191082ac 1puts "========"
2puts "OCC25344"
3puts "========"
4puts ""
5#######################################################
6# Draw variables do not follow the scope of TCL level
7#######################################################
8
9box a 1 1 1
10
11set filename "box file.brep"
12
13if [catch {save a $filename}] {
14 puts "ERROR: save failure"
15} else {
16 if ![file exists $filename] {
17 puts "ERROR: file \"$filename\" is not created"
18 } else {
19 if [catch {restore $filename b}] {
20 puts "ERROR: restore of file \"$filename\" is failure"
21 } else {
22 if {[dtyp a] != [dtyp b]} {
23 puts "ERROR: types of shape and its restored copy do not equal"
24 }
25 }
26 file delete $filename
27 }
28}