PolishCalculator

Description

Very simple toy example. Useful for test generation

Details

Source
GitHub
Created
Nov. 22, 2019
Updated
Nov. 22, 2019

Categories

Testing Education / Howto

README excerpt

# PolishCalculator

Here is a test:
```Smalltalk
testBasic
	| c |
	c := PolishCalculator new.
	c one.
	self assert: c top equals: 1.
	
	c two.
	c add.
	self assert: c top equals: 3.
```
← Back to results