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