/[ascend]/trunk/models/johnpye/testbadassign.a4c
ViewVC logotype

Contents of /trunk/models/johnpye/testbadassign.a4c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 621 - (show annotations) (download) (as text)
Thu May 18 06:25:11 2006 UTC (18 years, 8 months ago) by johnpye
File MIME type: text/x-ascend
File size: 419 byte(s)
Test model for bug #215.
1 REQUIRE "atoms.a4l";
2
3 MODEL testbadrelation;
4 x IS_A distance;
5 y IS_A speed;
6 x = y;
7
8 METHODS
9
10 METHOD default_self;
11 END default_self;
12
13 END testbadrelation;
14
15 (*---------------------------*)
16
17 MODEL testbadassignment;
18 x,y IS_A distance;
19 x=y;
20 METHODS
21 METHOD specify;
22 FIX x;
23 END specify;
24
25 METHOD values;
26 x := 3.0 {m/s};
27 END values;
28
29 METHOD default_self;
30 RUN reset; RUN values;
31 END default_self;
32 END testbadassignment;

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22