[squeak-dev] Phexample on Squeak

Stefan Marr smalltalk at stefan-marr.de
Sat Mar 9 00:11:19 UTC 2013


Hi Frank:

On 09 Mar 2013, at 00:45, Frank Shearar wrote:

> I have only one blip: ForExampleStack >> #shouldFailWhenPopEmpty fails
> because instead of 'this collection is empty' the example fails with
> 'this stack is empty'.

For Pharo I fixed it: http://smalltalkhub.com/#!/~Phexample/Phexample/diff/Phexample-StefanMarr.67

 shouldFailWhenPopEmpty
  	| stack |
  	stack := self given: #shouldBeEmpty.

+ 	[ stack pop ] should signal: Error withMessageText: 'a Stack() is empty'.!
- 	[ stack pop ] should signal: Error withMessageText: 'this collection is empty'.!

If you have a good idea how to handle platform-specific little things like that, I would add it.

Thanks
Stefan

-- 
Stefan Marr
Software Languages Lab
Vrije Universiteit Brussel
Pleinlaan 2 / B-1050 Brussels / Belgium
http://soft.vub.ac.be/~smarr
Phone: +32 2 629 2974
Fax:   +32 2 629 3525



More information about the Squeak-dev mailing list