Correction of testing case for issue 24374
[occt.git] / tests / bugs / step / bug23379
CommitLineData
66d6976f 1set os $env(os_type)
66d6976f 2
3puts "================"
4puts "OCC23379"
5puts "================"
6puts ""
7#################################
8# Exporting single point into STEP produces a compound with two points
9#################################
10
11pload XDE
12
13set filedir ${imagedir}
14
15set Name bug23379_point
16set brepFileName ${Name}.brep
17set stepFileName ${imagedir}/${Name}.step
18
19restore [locate_data_file ${brepFileName}] point
20
21stepwrite 0 point ${stepFileName}
22stepread ${stepFileName} a *
23set L [llength [explode a_1]]
24puts "L=$L"
25
26if { ${L} == 1} {
27 puts "OK : Number of points is good"
28} else {
29 puts "Error : Number of points is bad"
30}
31
32catch {exec rm -f ${stepFileName}}