Root/test/del_vec

Source at commit 8a1a3103964533b0d517a29312ddeabdab1d6271 created 5 years 10 days ago.
By Werner Almesberger, inst.c (find_point_vec): correct indentation
1#!/bin/sh
2. ./Common
3
4###############################################################################
5
6fped_dump "delete vector: it disappears" <<EOF
7v: vec @(0mm, 0mm)
8%del v
9EOF
10expect <<EOF
11/* MACHINE-GENERATED ! */
12
13package "_"
14unit mm
15
16EOF
17
18#------------------------------------------------------------------------------
19
20fped_dump "delete vector: references disappear" <<EOF
21v: vec @(0mm, 0mm)
22line v v
23%del v
24EOF
25expect <<EOF
26/* MACHINE-GENERATED ! */
27
28package "_"
29unit mm
30
31EOF
32
33#------------------------------------------------------------------------------
34
35fped_dump "delete vector: measurements disappear (same frame)" <<EOF
36v: vec @(0mm, 0mm)
37meas v -> v
38%del v
39EOF
40expect <<EOF
41/* MACHINE-GENERATED ! */
42
43package "_"
44unit mm
45
46EOF
47
48#------------------------------------------------------------------------------
49
50fped_dump "delete vector: measurements disappear (other frame)" <<EOF
51frame f {
52    v: vec @(0mm, 0mm)
53}
54frame f @
55meas f.v -> f.v
56%del f.v
57EOF
58expect <<EOF
59/* MACHINE-GENERATED ! */
60
61frame f {
62}
63
64package "_"
65unit mm
66
67frame f @
68EOF
69
70###############################################################################
71

Archive Download this file

Branches:
master



interactive