Fixed `DictionaryTests`: Do not use Smallalk-80-style `_` assignments jv
authorJan Vrany <jan.vrany@fit.cvut.cz>
Sat, 19 Nov 2016 10:43:57 +0000
branchjv
changeset 1544 657989d600f7
parent 1543 6d2bdaf0c9ec
child 1546 662fa681379c
Fixed `DictionaryTests`: Do not use Smallalk-80-style `_` assignments This test requires parser option to parse as `_` assignments which is by default off. Therefore test failed when run by standalone runner (and passed when run in IDE as most of us have the option on)
RegressionTests__DictionaryTest.st
--- a/RegressionTests__DictionaryTest.st	Thu Nov 10 00:27:25 2016 +0000
+++ b/RegressionTests__DictionaryTest.st	Sat Nov 19 10:43:57 2016 +0000
@@ -32,18 +32,18 @@
 
 	| answer d|
 
-	d _ Dictionary new.
+	d := Dictionary new.
 	d at: (Array with: #hello with: #world) put: #fooBar.
 	d at: Smalltalk put: #'Smalltalk is the key'.
 	d at: #Smalltalk put: Smalltalk.
 
-	answer _ d associationsSelect:
+	answer := d associationsSelect:
 		[:assoc | (assoc key == #Smalltalk) and: [assoc value == Smalltalk]].
 	self should: [answer isKindOf: Dictionary].
 	self should: [answer size == 1].
 	self should: [(answer at: #Smalltalk) == Smalltalk].
 
-	answer _ d associationsSelect:
+	answer := d associationsSelect:
 		[:assoc | (assoc key == #NoSuchKey) and: [assoc value == #NoSuchValue]].
 	self should: [answer isKindOf: Dictionary].
 	self should: [answer size == 0]