diff options
| author | manuel <manuel@mausz.at> | 2011-06-29 03:04:35 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-06-29 03:04:35 +0200 |
| commit | 039012a85eeb0fe96bf5d3e079dac7a2dc678988 (patch) | |
| tree | 46343d1b2fcb0b12680d1f0f50b4daa719a8d798 | |
| parent | 04c19bc7ccae1ce8e20733c075df5e9d6c448fc4 (diff) | |
| download | foop-039012a85eeb0fe96bf5d3e079dac7a2dc678988.tar.gz foop-039012a85eeb0fe96bf5d3e079dac7a2dc678988.tar.bz2 foop-039012a85eeb0fe96bf5d3e079dac7a2dc678988.zip | |
fix typo
| -rw-r--r-- | eiffel-fragen/replaceability/derived2.e | 3 | ||||
| -rw-r--r-- | eiffel-fragen/replaceability/test.e | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/eiffel-fragen/replaceability/derived2.e b/eiffel-fragen/replaceability/derived2.e index 232ea6c..0622d41 100644 --- a/eiffel-fragen/replaceability/derived2.e +++ b/eiffel-fragen/replaceability/derived2.e | |||
| @@ -17,10 +17,9 @@ feature | |||
| 17 | derived2_num_between_1_and_10: num >= 1 and num <= 10 | 17 | derived2_num_between_1_and_10: num >= 1 and num <= 10 |
| 18 | do | 18 | do |
| 19 | RESULT := derived_add10(num) | 19 | RESULT := derived_add10(num) |
| 20 | ensure then | ||
| 21 | -- weaken postcondition | ||
| 22 | end | 20 | end |
| 23 | 21 | ||
| 22 | -- weaken postcondition | ||
| 24 | myresult: INTEGER | 23 | myresult: INTEGER |
| 25 | do | 24 | do |
| 26 | RESULT := 20 | 25 | RESULT := 20 |
diff --git a/eiffel-fragen/replaceability/test.e b/eiffel-fragen/replaceability/test.e index 09a0821..44e2f9c 100644 --- a/eiffel-fragen/replaceability/test.e +++ b/eiffel-fragen/replaceability/test.e | |||
| @@ -20,7 +20,7 @@ feature {NONE} -- Initialization | |||
| 20 | ret := derived.add10(100) -- works | 20 | ret := derived.add10(100) -- works |
| 21 | --ret := derived2.add10(100) -- fails due to stronger preconditions | 21 | --ret := derived2.add10(100) -- fails due to stronger preconditions |
| 22 | 22 | ||
| 23 | --ret := derived.add10(10) -- fails due to precondition | 23 | --ret := derived.add10(10) -- fails due to postcondition |
| 24 | ret := derived2.add10(10) -- works due to weaker preconditions | 24 | ret := derived2.add10(10) -- works due to weaker postcondition |
| 25 | end | 25 | end |
| 26 | end | 26 | end |
