at-m42:casestudies:cs04
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
at-m42:casestudies:cs04 [2009/04/15 10:04] – eechris | at-m42:casestudies:cs04 [2011/01/14 12:59] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 774: | Line 774: | ||
game.addItem(item) | game.addItem(item) | ||
actual = game.pickupItem(item.id, | actual = game.pickupItem(item.id, | ||
- | println actual | ||
} | } | ||
Line 808: | Line 807: | ||
</ | </ | ||
- | Since the violation of an invariant indicates that a serious error has occurred, we terminate the system by throwing an '' | + | Since the violation of an invariant indicates that a serious error has occurred, we terminate the system by throwing an '' |
As before, we only check methods that are likely to cause a violation. In this case it is just the method '' | As before, we only check methods that are likely to cause a violation. In this case it is just the method '' | ||
Line 872: | Line 871: | ||
Happily all the tests in the '' | Happily all the tests in the '' | ||
- | ===== Exercises ===== | + | |
at-m42/casestudies/cs04.1239789852.txt.gz · Last modified: 2011/01/14 12:47 (external edit)