[squeak-dev] The Trunk: Tests-mt.328.mcz

Tobias Pape Das.Linux at gmx.de
Mon Sep 7 22:13:19 UTC 2015


Hey,


On 27.08.2015, at 08:54, commits at source.squeak.org wrote:

> Marcel Taeumel uploaded a new version of Tests to project The Trunk:
> http://source.squeak.org/trunk/Tests-mt.328.mcz
> 
> ==================== Summary ====================
> 
> Name: Tests-mt.328
> Author: mt
> Time: 27 August 2015, 10:54:02.079 am
> UUID: 2b490fe8-250d-2e48-84c2-41d50b1ae410
> Ancestors: Tests-eem.327
> 
> New tests for preferences.
[…]
> 
> Item was added:
> + ----- Method: PreferencesTest>>test08DNUFallback (in category 'tests') -----
> + test08DNUFallback
> + 
> + 	sut setPreference: #foo toValue: 123.
> + 	sut class removeSelectorSilently: #foo.
> + 
> + 	self assert: (sut perform: #foo) = 123.
> + 	self assert: (sut perform: #unknownSelector) isNil.!


Why the last one? Is that necessary?
First, absent primitives used to return `false`, not `nil`. 
This may or may not be good, but then again,  some software out
there sends messages to all classes in the system 
and expects unknown messages to error.

Best regards
	-Tobias


More information about the Squeak-dev mailing list