0031047: Modeling Algorithms - BRepExtrema_DistShapeShape gives wrong result
[occt.git] / tests / bugs / modalg_6 / bug24932
CommitLineData
8878d0ec 1puts "========"
2puts "OCC24932"
3puts "========"
4puts ""
5#######################################################################################
6# addsweep does not check if the supplied variable contains a shape
7#######################################################################################
8
9vertex v0 0 0 0
10vertex v1 1 0 0
11edge e1 v0 v1
12wire w1 e1
13mksweep w1
14shape solid1 So
15catch {addsweep solid1} msg
16if ![regexp "is not a wire" $msg] {
17 puts "Error: addsweep did not complaint about wrong argument - solid"
18} else {
19 puts "OK: addsweep noted wrong argument - solid"
20}
21
22mksweep w1
23shape emptyshape
24catch {addsweep emptyshape} msg
25if ![regexp "is not a wire" $msg] {
26 puts "Error: addsweep did not complaint about wrong argument - empty shape"
27} else {
28 puts "OK: addsweep noted wrong argument - empty shape"
29}
30
31mksweep w1
32if [info exists undefined] {unset undefined}
33catch {addsweep undefined} msg
34if ![regexp "is not a wire" $msg] {
35 puts "Error: addsweep did not complaint about wrong argument - undefined variable"
36} else {
37 puts "OK: addsweep noted wrong argument - undefined variable"
38}