Root/test/del_vec

Source at commit c9af8cd0fe183d31d1bc7079cb8e7deec3bbe74d created 13 years 9 months ago.
By werner, The mechanism for selecting points for measurements reaches its limits when using frames to encapsulate building blocks, e.g., like macros or functions in a programming language. Since measurements only know about the frame containing a vector but not the frames containing that frame, invocations of this frame from different places can only be distinguished within the min/next/max scheme. (See the example in README.)
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
15EOF
16
17#------------------------------------------------------------------------------
18
19fped_dump "delete vector: references disappear" <<EOF
20v: vec @(0mm, 0mm)
21line v v
22%del v
23EOF
24expect <<EOF
25/* MACHINE-GENERATED ! */
26
27package "_"
28unit mm
29EOF
30
31#------------------------------------------------------------------------------
32
33fped_dump "delete vector: measurements disappear (same frame)" <<EOF
34v: vec @(0mm, 0mm)
35meas v -> v
36%del v
37EOF
38expect <<EOF
39/* MACHINE-GENERATED ! */
40
41package "_"
42unit mm
43EOF
44
45#------------------------------------------------------------------------------
46
47fped_dump "delete vector: measurements disappear (other frame)" <<EOF
48frame f {
49    v: vec @(0mm, 0mm)
50}
51frame f @
52meas f.v -> f.v
53%del f.v
54EOF
55expect <<EOF
56/* MACHINE-GENERATED ! */
57
58frame f {
59}
60
61package "_"
62unit mm
63frame f @
64EOF
65
66###############################################################################
67

Archive Download this file

Branches:
master



interactive