Hey,
On 27.08.2015, at 08:54,
[hidden email] 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