]> git.somenet.org - pub/jan/ewbs-dlv.git/blob - w.test4.dl
psh tests
[pub/jan/ewbs-dlv.git] / w.test4.dl
1 % testing a wind-plant:requested too much
2 windmill(w).
3
4 % define max capacity
5 c_max(w,15).
6
7 % define control i1 to 25KW (we request 25 KW)
8 c(w,i1,25).
9
10 % define control iw to 10 windspeed
11 c(w,iw,10).
12
13 % we test.
14 % expecting i1 to be 25
15 expect_c(w,i1,25).
16
17 % expecting iw to be 10
18 expect_c(w,iw,10).
19
20 % and therefore we shall produce 15KW (as MAX is 15)
21 expect_p(w,op,15).
22