lists.squeakfoundation.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Packages
April 2013
----- 2024 -----
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
packages@lists.squeakfoundation.org
1 participants
195 discussions
Start a n
N
ew thread
The Trunk: Tests-cwp.195.mcz
by commits@source.squeak.org
02 Apr '13
02 Apr '13
Colin Putney uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-cwp.195.mcz
==================== Summary ==================== Name: Tests-cwp.195 Author: cwp Time: 1 April 2013, 11:13:55.788 pm UUID: d0b0de68-7e72-4291-a7c2-e9b35372660f Ancestors: Tests-dtl.194 Make environment tests use the new binding classes, add tests for #literalEqual:. =============== Diff against Tests-dtl.194 =============== Item was changed: ----- Method: AliasTest>>testAsBindingRead (in category 'tests') ----- testAsBindingRead | alias imported | + alias := (#Griffle => value) asBinding: #Plonk. - alias := (#Griffle -> value) asBinding: #Plonk. imported := alias asBinding: #Nurp. self assert: imported key = #Nurp. self assert: imported value == value! Item was changed: ----- Method: AliasTest>>testAsBindingWrite (in category 'tests') ----- testAsBindingWrite | alias imported global | + global := Global key: #Griffle value: Object new. - global := Association key: #Griffle value: Object new. alias := global asBinding: #Plonk. imported := alias asBinding: #Nurp. imported value: value. self assert: global value == value! Item was changed: ----- Method: AliasTest>>testCanAssign (in category 'tests') ----- testCanAssign | alias | + alias := Alias key: #Plonk source: #Giffle => value. - alias := Alias key: #Plonk source: #Giffle -> value. self assert: alias canAssign! Item was changed: ----- Method: AliasTest>>testIsSpecialRead (in category 'tests') ----- testIsSpecialRead | alias | + alias := Alias key: #Plonk source: #Griffle => value. - alias := Alias key: #Plonk source: #Griffle -> value. self assert: alias isSpecialReadBinding! Item was changed: ----- Method: AliasTest>>testIsSpecialWrite (in category 'tests') ----- testIsSpecialWrite | alias | + alias := Alias key: #Plonk source: #Griffle => value. - alias := Alias key: #Plonk source: #Griffle -> value. self assert: alias isSpecialWriteBinding! Item was added: + ----- Method: AliasTest>>testLiteralEqual (in category 'tests') ----- + testLiteralEqual + | global a1 a2 | + global := #Giffle => value. + a1 := global asBinding: #Plonk. + a2 := global asBinding: #Nurp. + self assert: (a1 literalEqual: a2) + ! Item was added: + ----- Method: AliasTest>>testLiteralUnequal (in category 'tests') ----- + testLiteralUnequal + | a1 a2 | + a1 := (#Giffle => value) asBinding: #Plonk. + a2 := (#Giffle => value) asBinding: #Plonk. + self deny: (a1 literalEqual: a2) + ! Item was changed: ----- Method: AliasTest>>testWrite (in category 'tests') ----- testWrite | alias global | + global := #Giffle => Object new. - global := #Giffle -> Object new. alias := Alias key: #Plonk source: global. alias value: value. self assert: global value == value. self assert: alias value == value.! Item was removed: - TestCase subclass: #BindingTest - instanceVariableNames: 'key value' - classVariableNames: '' - poolDictionaries: '' - category: 'Tests-Environments'! Item was removed: - ----- Method: BindingTest>>setUp (in category 'as yet unclassified') ----- - setUp - key := Object new. - value := Object new.! Item was removed: - ----- Method: BindingTest>>testAsBindingRead (in category 'as yet unclassified') ----- - testAsBindingRead - | binding imported | - binding := Binding key: #Griffle value: value. - imported := binding asBinding: #Plonk. - self assert: imported key = #Plonk. - self assert: imported value == value.! Item was removed: - ----- Method: BindingTest>>testCanAssign (in category 'as yet unclassified') ----- - testCanAssign - | binding | - binding := Binding key: key value: value. - self deny: binding canAssign! Item was removed: - ----- Method: BindingTest>>testIsSpecialRead (in category 'as yet unclassified') ----- - testIsSpecialRead - | binding | - binding := Binding key: key value: value. - self deny: binding isSpecialReadBinding! Item was removed: - ----- Method: BindingTest>>testIsSpecialWrite (in category 'as yet unclassified') ----- - testIsSpecialWrite - | binding | - binding := Binding key: key value: value. - self assert: binding isSpecialWriteBinding! Item was removed: - ----- Method: BindingTest>>testRead (in category 'as yet unclassified') ----- - testRead - | binding | - binding := Binding key: key value: value. - self assert: binding key == key. - self assert: binding value == value! Item was removed: - ----- Method: BindingTest>>testResumeExceptionToWrite (in category 'as yet unclassified') ----- - testResumeExceptionToWrite - | binding | - binding := Binding key: key value: Object new. - [binding value: value] - on: AttemptToWriteReadOnlyGlobal - do: [:ex | ex resume: true]. - self assert: binding value == value! Item was removed: - ----- Method: BindingTest>>testWriteRaisesException (in category 'as yet unclassified') ----- - testWriteRaisesException - | binding | - binding := Binding key: key value: value. - self - should: [binding value: Object new] - raise: AttemptToWriteReadOnlyGlobal.! Item was added: + TestCase subclass: #ClassBindingTest + instanceVariableNames: 'key value' + classVariableNames: '' + poolDictionaries: '' + category: 'Tests-Environments'! Item was added: + ----- Method: ClassBindingTest>>setUp (in category 'as yet unclassified') ----- + setUp + key := Object new. + value := Object new.! Item was added: + ----- Method: ClassBindingTest>>testArrowBinding (in category 'as yet unclassified') ----- + testArrowBinding + | binding | + binding := #Griffle => self class. + self assert: binding class = ClassBinding. + self assert: binding key = #Griffle. + self assert: binding value = self class. + ! Item was added: + ----- Method: ClassBindingTest>>testAsBindingRead (in category 'as yet unclassified') ----- + testAsBindingRead + | binding imported | + binding := ClassBinding key: #Griffle value: value. + imported := binding asBinding: #Plonk. + self assert: imported key = #Plonk. + self assert: imported value == value.! Item was added: + ----- Method: ClassBindingTest>>testCanAssign (in category 'as yet unclassified') ----- + testCanAssign + | binding | + binding := ClassBinding key: key value: value. + self deny: binding canAssign! Item was added: + ----- Method: ClassBindingTest>>testIsSpecialRead (in category 'as yet unclassified') ----- + testIsSpecialRead + | binding | + binding := ClassBinding key: key value: value. + self deny: binding isSpecialReadBinding! Item was added: + ----- Method: ClassBindingTest>>testIsSpecialWrite (in category 'as yet unclassified') ----- + testIsSpecialWrite + | binding | + binding := ClassBinding key: key value: value. + self assert: binding isSpecialWriteBinding! Item was added: + ----- Method: ClassBindingTest>>testLiteralEqual (in category 'as yet unclassified') ----- + testLiteralEqual + | b1 b2 | + b1 := #Griffle => self class. + b2 := #Plonk => self class. + self assert: (b1 literalEqual: b2)! Item was added: + ----- Method: ClassBindingTest>>testLiteralUnequal (in category 'as yet unclassified') ----- + testLiteralUnequal + | b1 b2 | + b1 := #Griffle => self class. + b2 := #Griffle => self class superclass. + self deny: (b1 literalEqual: b2)! Item was added: + ----- Method: ClassBindingTest>>testRead (in category 'as yet unclassified') ----- + testRead + | binding | + binding := ClassBinding key: key value: value. + self assert: binding key == key. + self assert: binding value == value! Item was added: + ----- Method: ClassBindingTest>>testResumeExceptionToWrite (in category 'as yet unclassified') ----- + testResumeExceptionToWrite + | binding | + binding := ClassBinding key: key value: Object new. + [binding value: value] + on: AttemptToWriteReadOnlyGlobal + do: [:ex | ex resume: true]. + self assert: binding value == value! Item was added: + ----- Method: ClassBindingTest>>testWriteRaisesException (in category 'as yet unclassified') ----- + testWriteRaisesException + | binding | + binding := ClassBinding key: key value: value. + self + should: [binding value: Object new] + raise: AttemptToWriteReadOnlyGlobal.! Item was changed: + AnObsoleteClassTestCase subclass: #EventManagerTest - ClassTestCase subclass: #EventManagerTest instanceVariableNames: 'eventSource eventListener succeeded' classVariableNames: '' poolDictionaries: '' category: 'Tests-Object Events'! Item was changed: + AnObsoleteClassTestCase subclass: #FileDirectoryTest - ClassTestCase subclass: #FileDirectoryTest instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'Tests-Files'! Item was changed: + AnObsoleteClassTestCase subclass: #FileStreamTest - ClassTestCase subclass: #FileStreamTest instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'Tests-Files'! Item was added: + ----- Method: GlobalTest>>testArrowBinding (in category 'as yet unclassified') ----- + testArrowBinding + | binding | + binding := #Griffle => value. + self assert: binding class = Global. + self assert: binding key = #Griffle. + self assert: binding value == value! Item was changed: ----- Method: GlobalTest>>testAsBindingRead (in category 'as yet unclassified') ----- testAsBindingRead | global imported | + global := Global key: key value: value. - global := Association key: key value: value. imported := global asBinding: #Griffle. self assert: imported key = #Griffle. self assert: imported value == value. ! Item was changed: ----- Method: GlobalTest>>testAsBindingWrite (in category 'as yet unclassified') ----- testAsBindingWrite | global imported | + global := Global key: key value: Object new. - global := Association key: key value: Object new. imported := global asBinding: #Griffle. imported value: value. self assert: imported value == value. ! Item was changed: ----- Method: GlobalTest>>testCanAssign (in category 'as yet unclassified') ----- testCanAssign | global | + global := Global key: key value: value. - global := Association key: key value: value. self assert: global canAssign! Item was changed: ----- Method: GlobalTest>>testIsSpecialRead (in category 'as yet unclassified') ----- testIsSpecialRead | global | + global := Global key: key value: value. - global := Association key: key value: value. self deny: global isSpecialReadBinding! Item was changed: ----- Method: GlobalTest>>testIsSpecialWrite (in category 'as yet unclassified') ----- testIsSpecialWrite | global | + global := Global key: key value: value. - global := Association key: key value: value. self deny: global isSpecialWriteBinding! Item was added: + ----- Method: GlobalTest>>testLiteralEqual (in category 'as yet unclassified') ----- + testLiteralEqual + | global | + global := #Griffle => value. + self assert: (global literalEqual: global)! Item was added: + ----- Method: GlobalTest>>testLiteralUnequal (in category 'as yet unclassified') ----- + testLiteralUnequal + | g1 g2 | + g1 := #Griffle => value. + g2 := #Griffle => value. + self deny: (g1 literalEqual: g2)! Item was changed: ----- Method: GlobalTest>>testRead (in category 'as yet unclassified') ----- testRead | global | + global := Global key: key value: value. - global := Association key: key value: value. self assert: global key == key. self assert: global value == value.! Item was changed: ----- Method: GlobalTest>>testWrite (in category 'as yet unclassified') ----- testWrite | global | + global := Global key: key value: Object new. - global := Association key: key value: Object new. global value: value. self assert: global value == value! Item was added: + ----- Method: NamePolicyTest class>>isAbstract (in category 'as yet unclassified') ----- + isAbstract + ^ self name = #NamePolicyTest! Item was changed: + AnObsoleteClassTestCase subclass: #PrimCallControllerAbstractTest - ClassTestCase subclass: #PrimCallControllerAbstractTest instanceVariableNames: 'pcc doNotMakeSlowTestsFlag' classVariableNames: '' poolDictionaries: '' category: 'Tests-PrimCallController'! !PrimCallControllerAbstractTest commentStamp: 'sr 6/15/2004 19:20' prior: 0! PrimCallController tests. Tests are here, but this class isAbstract and won't be tested. Tests are done in the subclasses, which inherit the tests here. If you want to perform some more very slow tests, change doNotMakeSlowTestsFlag in >>setUp.! Item was changed: + AnObsoleteClassTestCase subclass: #SecureHashAlgorithmTest - ClassTestCase subclass: #SecureHashAlgorithmTest instanceVariableNames: 'hash' classVariableNames: '' poolDictionaries: '' category: 'Tests-Digital Signatures'! !SecureHashAlgorithmTest commentStamp: '<historical>' prior: 0! This is the unit test for the class SecureHashAlgorithm. Unit tests are a good way to exercise the functionality of your system in a repeatable and automatic manner. They are therefore recommended if you plan to release anything. For more information, see: -
http://www.c2.com/cgi/wiki?UnitTest
-
http://minnow.cc.gatech.edu/squeak/1547
- the sunit class category!
1
0
0
0
The Trunk: Tests-cwp.195.mcz
by commits@source.squeak.org
02 Apr '13
02 Apr '13
Colin Putney uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-cwp.195.mcz
==================== Summary ==================== Name: Tests-cwp.195 Author: cwp Time: 1 April 2013, 11:13:55.788 pm UUID: d0b0de68-7e72-4291-a7c2-e9b35372660f Ancestors: Tests-dtl.194 Make environment tests use the new binding classes, add tests for #literalEqual:. =============== Diff against Tests-dtl.194 =============== Item was changed: ----- Method: AliasTest>>testAsBindingRead (in category 'tests') ----- testAsBindingRead | alias imported | + alias := (#Griffle => value) asBinding: #Plonk. - alias := (#Griffle -> value) asBinding: #Plonk. imported := alias asBinding: #Nurp. self assert: imported key = #Nurp. self assert: imported value == value! Item was changed: ----- Method: AliasTest>>testAsBindingWrite (in category 'tests') ----- testAsBindingWrite | alias imported global | + global := Global key: #Griffle value: Object new. - global := Association key: #Griffle value: Object new. alias := global asBinding: #Plonk. imported := alias asBinding: #Nurp. imported value: value. self assert: global value == value! Item was changed: ----- Method: AliasTest>>testCanAssign (in category 'tests') ----- testCanAssign | alias | + alias := Alias key: #Plonk source: #Giffle => value. - alias := Alias key: #Plonk source: #Giffle -> value. self assert: alias canAssign! Item was changed: ----- Method: AliasTest>>testIsSpecialRead (in category 'tests') ----- testIsSpecialRead | alias | + alias := Alias key: #Plonk source: #Griffle => value. - alias := Alias key: #Plonk source: #Griffle -> value. self assert: alias isSpecialReadBinding! Item was changed: ----- Method: AliasTest>>testIsSpecialWrite (in category 'tests') ----- testIsSpecialWrite | alias | + alias := Alias key: #Plonk source: #Griffle => value. - alias := Alias key: #Plonk source: #Griffle -> value. self assert: alias isSpecialWriteBinding! Item was added: + ----- Method: AliasTest>>testLiteralEqual (in category 'tests') ----- + testLiteralEqual + | global a1 a2 | + global := #Giffle => value. + a1 := global asBinding: #Plonk. + a2 := global asBinding: #Nurp. + self assert: (a1 literalEqual: a2) + ! Item was added: + ----- Method: AliasTest>>testLiteralUnequal (in category 'tests') ----- + testLiteralUnequal + | a1 a2 | + a1 := (#Giffle => value) asBinding: #Plonk. + a2 := (#Giffle => value) asBinding: #Plonk. + self deny: (a1 literalEqual: a2) + ! Item was changed: ----- Method: AliasTest>>testWrite (in category 'tests') ----- testWrite | alias global | + global := #Giffle => Object new. - global := #Giffle -> Object new. alias := Alias key: #Plonk source: global. alias value: value. self assert: global value == value. self assert: alias value == value.! Item was removed: - TestCase subclass: #BindingTest - instanceVariableNames: 'key value' - classVariableNames: '' - poolDictionaries: '' - category: 'Tests-Environments'! Item was removed: - ----- Method: BindingTest>>setUp (in category 'as yet unclassified') ----- - setUp - key := Object new. - value := Object new.! Item was removed: - ----- Method: BindingTest>>testAsBindingRead (in category 'as yet unclassified') ----- - testAsBindingRead - | binding imported | - binding := Binding key: #Griffle value: value. - imported := binding asBinding: #Plonk. - self assert: imported key = #Plonk. - self assert: imported value == value.! Item was removed: - ----- Method: BindingTest>>testCanAssign (in category 'as yet unclassified') ----- - testCanAssign - | binding | - binding := Binding key: key value: value. - self deny: binding canAssign! Item was removed: - ----- Method: BindingTest>>testIsSpecialRead (in category 'as yet unclassified') ----- - testIsSpecialRead - | binding | - binding := Binding key: key value: value. - self deny: binding isSpecialReadBinding! Item was removed: - ----- Method: BindingTest>>testIsSpecialWrite (in category 'as yet unclassified') ----- - testIsSpecialWrite - | binding | - binding := Binding key: key value: value. - self assert: binding isSpecialWriteBinding! Item was removed: - ----- Method: BindingTest>>testRead (in category 'as yet unclassified') ----- - testRead - | binding | - binding := Binding key: key value: value. - self assert: binding key == key. - self assert: binding value == value! Item was removed: - ----- Method: BindingTest>>testResumeExceptionToWrite (in category 'as yet unclassified') ----- - testResumeExceptionToWrite - | binding | - binding := Binding key: key value: Object new. - [binding value: value] - on: AttemptToWriteReadOnlyGlobal - do: [:ex | ex resume: true]. - self assert: binding value == value! Item was removed: - ----- Method: BindingTest>>testWriteRaisesException (in category 'as yet unclassified') ----- - testWriteRaisesException - | binding | - binding := Binding key: key value: value. - self - should: [binding value: Object new] - raise: AttemptToWriteReadOnlyGlobal.! Item was added: + TestCase subclass: #ClassBindingTest + instanceVariableNames: 'key value' + classVariableNames: '' + poolDictionaries: '' + category: 'Tests-Environments'! Item was added: + ----- Method: ClassBindingTest>>setUp (in category 'as yet unclassified') ----- + setUp + key := Object new. + value := Object new.! Item was added: + ----- Method: ClassBindingTest>>testArrowBinding (in category 'as yet unclassified') ----- + testArrowBinding + | binding | + binding := #Griffle => self class. + self assert: binding class = ClassBinding. + self assert: binding key = #Griffle. + self assert: binding value = self class. + ! Item was added: + ----- Method: ClassBindingTest>>testAsBindingRead (in category 'as yet unclassified') ----- + testAsBindingRead + | binding imported | + binding := ClassBinding key: #Griffle value: value. + imported := binding asBinding: #Plonk. + self assert: imported key = #Plonk. + self assert: imported value == value.! Item was added: + ----- Method: ClassBindingTest>>testCanAssign (in category 'as yet unclassified') ----- + testCanAssign + | binding | + binding := ClassBinding key: key value: value. + self deny: binding canAssign! Item was added: + ----- Method: ClassBindingTest>>testIsSpecialRead (in category 'as yet unclassified') ----- + testIsSpecialRead + | binding | + binding := ClassBinding key: key value: value. + self deny: binding isSpecialReadBinding! Item was added: + ----- Method: ClassBindingTest>>testIsSpecialWrite (in category 'as yet unclassified') ----- + testIsSpecialWrite + | binding | + binding := ClassBinding key: key value: value. + self assert: binding isSpecialWriteBinding! Item was added: + ----- Method: ClassBindingTest>>testLiteralEqual (in category 'as yet unclassified') ----- + testLiteralEqual + | b1 b2 | + b1 := #Griffle => self class. + b2 := #Plonk => self class. + self assert: (b1 literalEqual: b2)! Item was added: + ----- Method: ClassBindingTest>>testLiteralUnequal (in category 'as yet unclassified') ----- + testLiteralUnequal + | b1 b2 | + b1 := #Griffle => self class. + b2 := #Griffle => self class superclass. + self deny: (b1 literalEqual: b2)! Item was added: + ----- Method: ClassBindingTest>>testRead (in category 'as yet unclassified') ----- + testRead + | binding | + binding := ClassBinding key: key value: value. + self assert: binding key == key. + self assert: binding value == value! Item was added: + ----- Method: ClassBindingTest>>testResumeExceptionToWrite (in category 'as yet unclassified') ----- + testResumeExceptionToWrite + | binding | + binding := ClassBinding key: key value: Object new. + [binding value: value] + on: AttemptToWriteReadOnlyGlobal + do: [:ex | ex resume: true]. + self assert: binding value == value! Item was added: + ----- Method: ClassBindingTest>>testWriteRaisesException (in category 'as yet unclassified') ----- + testWriteRaisesException + | binding | + binding := ClassBinding key: key value: value. + self + should: [binding value: Object new] + raise: AttemptToWriteReadOnlyGlobal.! Item was changed: + AnObsoleteClassTestCase subclass: #EventManagerTest - ClassTestCase subclass: #EventManagerTest instanceVariableNames: 'eventSource eventListener succeeded' classVariableNames: '' poolDictionaries: '' category: 'Tests-Object Events'! Item was changed: + AnObsoleteClassTestCase subclass: #FileDirectoryTest - ClassTestCase subclass: #FileDirectoryTest instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'Tests-Files'! Item was changed: + AnObsoleteClassTestCase subclass: #FileStreamTest - ClassTestCase subclass: #FileStreamTest instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'Tests-Files'! Item was added: + ----- Method: GlobalTest>>testArrowBinding (in category 'as yet unclassified') ----- + testArrowBinding + | binding | + binding := #Griffle => value. + self assert: binding class = Global. + self assert: binding key = #Griffle. + self assert: binding value == value! Item was changed: ----- Method: GlobalTest>>testAsBindingRead (in category 'as yet unclassified') ----- testAsBindingRead | global imported | + global := Global key: key value: value. - global := Association key: key value: value. imported := global asBinding: #Griffle. self assert: imported key = #Griffle. self assert: imported value == value. ! Item was changed: ----- Method: GlobalTest>>testAsBindingWrite (in category 'as yet unclassified') ----- testAsBindingWrite | global imported | + global := Global key: key value: Object new. - global := Association key: key value: Object new. imported := global asBinding: #Griffle. imported value: value. self assert: imported value == value. ! Item was changed: ----- Method: GlobalTest>>testCanAssign (in category 'as yet unclassified') ----- testCanAssign | global | + global := Global key: key value: value. - global := Association key: key value: value. self assert: global canAssign! Item was changed: ----- Method: GlobalTest>>testIsSpecialRead (in category 'as yet unclassified') ----- testIsSpecialRead | global | + global := Global key: key value: value. - global := Association key: key value: value. self deny: global isSpecialReadBinding! Item was changed: ----- Method: GlobalTest>>testIsSpecialWrite (in category 'as yet unclassified') ----- testIsSpecialWrite | global | + global := Global key: key value: value. - global := Association key: key value: value. self deny: global isSpecialWriteBinding! Item was added: + ----- Method: GlobalTest>>testLiteralEqual (in category 'as yet unclassified') ----- + testLiteralEqual + | global | + global := #Griffle => value. + self assert: (global literalEqual: global)! Item was added: + ----- Method: GlobalTest>>testLiteralUnequal (in category 'as yet unclassified') ----- + testLiteralUnequal + | g1 g2 | + g1 := #Griffle => value. + g2 := #Griffle => value. + self deny: (g1 literalEqual: g2)! Item was changed: ----- Method: GlobalTest>>testRead (in category 'as yet unclassified') ----- testRead | global | + global := Global key: key value: value. - global := Association key: key value: value. self assert: global key == key. self assert: global value == value.! Item was changed: ----- Method: GlobalTest>>testWrite (in category 'as yet unclassified') ----- testWrite | global | + global := Global key: key value: Object new. - global := Association key: key value: Object new. global value: value. self assert: global value == value! Item was added: + ----- Method: NamePolicyTest class>>isAbstract (in category 'as yet unclassified') ----- + isAbstract + ^ self name = #NamePolicyTest! Item was changed: + AnObsoleteClassTestCase subclass: #PrimCallControllerAbstractTest - ClassTestCase subclass: #PrimCallControllerAbstractTest instanceVariableNames: 'pcc doNotMakeSlowTestsFlag' classVariableNames: '' poolDictionaries: '' category: 'Tests-PrimCallController'! !PrimCallControllerAbstractTest commentStamp: 'sr 6/15/2004 19:20' prior: 0! PrimCallController tests. Tests are here, but this class isAbstract and won't be tested. Tests are done in the subclasses, which inherit the tests here. If you want to perform some more very slow tests, change doNotMakeSlowTestsFlag in >>setUp.! Item was changed: + AnObsoleteClassTestCase subclass: #SecureHashAlgorithmTest - ClassTestCase subclass: #SecureHashAlgorithmTest instanceVariableNames: 'hash' classVariableNames: '' poolDictionaries: '' category: 'Tests-Digital Signatures'! !SecureHashAlgorithmTest commentStamp: '<historical>' prior: 0! This is the unit test for the class SecureHashAlgorithm. Unit tests are a good way to exercise the functionality of your system in a repeatable and automatic manner. They are therefore recommended if you plan to release anything. For more information, see: -
http://www.c2.com/cgi/wiki?UnitTest
-
http://minnow.cc.gatech.edu/squeak/1547
- the sunit class category!
1
0
0
0
The Trunk: Environments-cwp.19.mcz
by commits@source.squeak.org
02 Apr '13
02 Apr '13
Colin Putney uploaded a new version of Environments to project The Trunk:
http://source.squeak.org/trunk/Environments-cwp.19.mcz
==================== Summary ==================== Name: Environments-cwp.19 Author: cwp Time: 1 April 2013, 11:08:28.022 pm UUID: 90a9eda4-b8ad-4f7e-9e71-c5e940c08e4f Ancestors: Environments-cwp.18 Bindings cleanup stage 1/2. =============== Diff against Environments-cwp.18 =============== Item was added: + LookupKey subclass: #AbstractBinding + instanceVariableNames: '' + classVariableNames: '' + poolDictionaries: '' + category: 'Environments-Core'! Item was added: + ----- Method: AbstractBinding class>>convertInstances (in category 'as yet unclassified') ----- + convertInstances + | new old | + old := Binding allInstances. + new := old collect: [:ea | ClassBinding key: ea key value: ea value]. + old elementsForwardIdentityTo: new. + + old := ReadOnlyVariableBinding allInstances. + new := old collect: [:ea | ClassBinding key: ea key value: ea value]. + old elementsForwardIdentityTo: new. + + Environment allInstancesDo: + [:env | + #('contents' 'bindings' 'public' 'undeclared') do: + [:var || dict | + old := Array new writeStream. + new := Array new writeStream. + dict := env instVarNamed: var. + dict associations do: + [:binding | + binding class == Association ifTrue: + [old nextPut: binding. + new nextPut: binding key => binding value]]. + old contents elementsForwardIdentityTo: new contents]]! Item was added: + ----- Method: AbstractBinding class>>initialize (in category 'as yet unclassified') ----- + initialize + self convertInstances! Item was added: + ----- Method: AbstractBinding>>analogousCodeTo: (in category 'as yet unclassified') ----- + analogousCodeTo: anObject + "For MethodProperties comparison." + ^anObject isVariableBinding + and: [self key = anObject key + and: [self value = anObject value]]! Item was added: + ----- Method: AbstractBinding>>canAssign (in category 'as yet unclassified') ----- + canAssign + ^ true! Item was added: + ----- Method: AbstractBinding>>isSpecialReadBinding (in category 'as yet unclassified') ----- + isSpecialReadBinding + ^ false! Item was added: + ----- Method: AbstractBinding>>isSpecialWriteBinding (in category 'as yet unclassified') ----- + isSpecialWriteBinding + ^ false! Item was added: + ----- Method: AbstractBinding>>isVariableBinding (in category 'as yet unclassified') ----- + isVariableBinding + ^ true! Item was added: + ----- Method: AbstractBinding>>objectForDataStream: (in category 'as yet unclassified') ----- + objectForDataStream: refStream + "It's not yet clear how serialization should work in the presence of environments" + + self shouldBeImplemented.! Item was added: + ----- Method: AbstractBinding>>printOn: (in category 'as yet unclassified') ----- + printOn: aStream + key printOn: aStream. + aStream nextPutAll: '=>'. + self value printOn: aStream! Item was changed: + AbstractBinding subclass: #Alias - LookupKey subclass: #Alias instanceVariableNames: 'source' classVariableNames: '' poolDictionaries: '' category: 'Environments-Core'! Item was changed: + ----- Method: Alias>>initializeWithKey:source: (in category 'initialization') ----- - ----- Method: Alias>>initializeWithKey:source: (in category 'as yet unclassified') ----- initializeWithKey: aSymbol source: anAssociation self initialize. key := aSymbol. source := anAssociation! Item was changed: + ----- Method: Alias>>isSpecialReadBinding (in category 'testing') ----- - ----- Method: Alias>>isSpecialReadBinding (in category 'as yet unclassified') ----- isSpecialReadBinding ^ true! Item was changed: + ----- Method: Alias>>isSpecialWriteBinding (in category 'testing') ----- - ----- Method: Alias>>isSpecialWriteBinding (in category 'as yet unclassified') ----- isSpecialWriteBinding ^ true! Item was added: + ----- Method: Alias>>literalEqual: (in category 'error handling') ----- + literalEqual: other + "Two aliases are equal if they have the same source" + + ^ self species = other species and: [self source == other source]! Item was added: + ----- Method: Alias>>source (in category 'accessing') ----- + source + ^ source! Item was changed: + ----- Method: Alias>>value (in category 'evaluating') ----- - ----- Method: Alias>>value (in category 'as yet unclassified') ----- value ^ source value! Item was changed: + ----- Method: Alias>>value: (in category 'accessing') ----- - ----- Method: Alias>>value: (in category 'as yet unclassified') ----- value: anObject source value: anObject! Item was added: + AbstractBinding subclass: #ClassBinding + instanceVariableNames: 'value' + classVariableNames: '' + poolDictionaries: '' + category: 'Environments-Core'! Item was added: + ----- Method: ClassBinding class>>key:value: (in category 'as yet unclassified') ----- + key: key value: value + ^ self basicNew initializeWithKey: key value: value! Item was added: + ----- Method: ClassBinding>>asBinding: (in category 'as yet unclassified') ----- + asBinding: aSymbol + ^ self class key: aSymbol value: value! Item was added: + ----- Method: ClassBinding>>canAssign (in category 'as yet unclassified') ----- + canAssign + ^ false! Item was added: + ----- Method: ClassBinding>>initializeWithKey:value: (in category 'as yet unclassified') ----- + initializeWithKey: kObject value: vObject + self initialize. + key := kObject. + value := vObject.! Item was added: + ----- Method: ClassBinding>>isSpecialWriteBinding (in category 'as yet unclassified') ----- + isSpecialWriteBinding + ^ true! Item was added: + ----- Method: ClassBinding>>literalEqual: (in category 'as yet unclassified') ----- + literalEqual: other + "Class bindings are equal when the bind the same class" + + ^ self species = other species and: [self value = other value]! Item was added: + ----- Method: ClassBinding>>value (in category 'as yet unclassified') ----- + value + ^ value! Item was added: + ----- Method: ClassBinding>>value: (in category 'as yet unclassified') ----- + value: anObject + (AttemptToWriteReadOnlyGlobal signal: 'Cannot store into read-only bindings') + ifTrue: [value := anObject]! Item was added: + AbstractBinding subclass: #Global + instanceVariableNames: 'value' + classVariableNames: '' + poolDictionaries: '' + category: 'Environments-Core'! Item was added: + ----- Method: Global class>>key:value: (in category 'as yet unclassified') ----- + key: aSymbol value: anObject + ^ self basicNew initializeWithKey: aSymbol value: anObject! Item was added: + ----- Method: Global>>asBinding: (in category 'as yet unclassified') ----- + asBinding: aSymbol + ^ Alias key: aSymbol source: self! Item was added: + ----- Method: Global>>initializeWithKey:value: (in category 'as yet unclassified') ----- + initializeWithKey: aSymbol value: anObject + self initialize. + key := aSymbol. + value := anObject! Item was added: + ----- Method: Global>>literalEqual: (in category 'as yet unclassified') ----- + literalEqual: other + "Globals are only equal to themselves, since another global with the same + name could have a different value in the future." + + ^ self == other! Item was added: + ----- Method: Global>>value (in category 'as yet unclassified') ----- + value + ^ value! Item was added: + ----- Method: Global>>value: (in category 'as yet unclassified') ----- + value: anObject + value := anObject! Item was added: + ----- Method: Symbol>>=> (in category '*environments') ----- + => anObject + + ^ anObject isBehavior + ifTrue: [ClassBinding key: self value: anObject] + ifFalse: [Global key: self value: anObject]!
1
0
0
0
The Trunk: Environments-cwp.19.mcz
by commits@source.squeak.org
02 Apr '13
02 Apr '13
Colin Putney uploaded a new version of Environments to project The Trunk:
http://source.squeak.org/trunk/Environments-cwp.19.mcz
==================== Summary ==================== Name: Environments-cwp.19 Author: cwp Time: 1 April 2013, 11:08:28.022 pm UUID: 90a9eda4-b8ad-4f7e-9e71-c5e940c08e4f Ancestors: Environments-cwp.18 Bindings cleanup stage 1/2. =============== Diff against Environments-cwp.18 =============== Item was added: + LookupKey subclass: #AbstractBinding + instanceVariableNames: '' + classVariableNames: '' + poolDictionaries: '' + category: 'Environments-Core'! Item was added: + ----- Method: AbstractBinding class>>convertInstances (in category 'as yet unclassified') ----- + convertInstances + | new old | + old := Binding allInstances. + new := old collect: [:ea | ClassBinding key: ea key value: ea value]. + old elementsForwardIdentityTo: new. + + old := ReadOnlyVariableBinding allInstances. + new := old collect: [:ea | ClassBinding key: ea key value: ea value]. + old elementsForwardIdentityTo: new. + + Environment allInstancesDo: + [:env | + #('contents' 'bindings' 'public' 'undeclared') do: + [:var || dict | + old := Array new writeStream. + new := Array new writeStream. + dict := env instVarNamed: var. + dict associations do: + [:binding | + binding class == Association ifTrue: + [old nextPut: binding. + new nextPut: binding key => binding value]]. + old contents elementsForwardIdentityTo: new contents]]! Item was added: + ----- Method: AbstractBinding class>>initialize (in category 'as yet unclassified') ----- + initialize + self convertInstances! Item was added: + ----- Method: AbstractBinding>>analogousCodeTo: (in category 'as yet unclassified') ----- + analogousCodeTo: anObject + "For MethodProperties comparison." + ^anObject isVariableBinding + and: [self key = anObject key + and: [self value = anObject value]]! Item was added: + ----- Method: AbstractBinding>>canAssign (in category 'as yet unclassified') ----- + canAssign + ^ true! Item was added: + ----- Method: AbstractBinding>>isSpecialReadBinding (in category 'as yet unclassified') ----- + isSpecialReadBinding + ^ false! Item was added: + ----- Method: AbstractBinding>>isSpecialWriteBinding (in category 'as yet unclassified') ----- + isSpecialWriteBinding + ^ false! Item was added: + ----- Method: AbstractBinding>>isVariableBinding (in category 'as yet unclassified') ----- + isVariableBinding + ^ true! Item was added: + ----- Method: AbstractBinding>>objectForDataStream: (in category 'as yet unclassified') ----- + objectForDataStream: refStream + "It's not yet clear how serialization should work in the presence of environments" + + self shouldBeImplemented.! Item was added: + ----- Method: AbstractBinding>>printOn: (in category 'as yet unclassified') ----- + printOn: aStream + key printOn: aStream. + aStream nextPutAll: '=>'. + self value printOn: aStream! Item was changed: + AbstractBinding subclass: #Alias - LookupKey subclass: #Alias instanceVariableNames: 'source' classVariableNames: '' poolDictionaries: '' category: 'Environments-Core'! Item was changed: + ----- Method: Alias>>initializeWithKey:source: (in category 'initialization') ----- - ----- Method: Alias>>initializeWithKey:source: (in category 'as yet unclassified') ----- initializeWithKey: aSymbol source: anAssociation self initialize. key := aSymbol. source := anAssociation! Item was changed: + ----- Method: Alias>>isSpecialReadBinding (in category 'testing') ----- - ----- Method: Alias>>isSpecialReadBinding (in category 'as yet unclassified') ----- isSpecialReadBinding ^ true! Item was changed: + ----- Method: Alias>>isSpecialWriteBinding (in category 'testing') ----- - ----- Method: Alias>>isSpecialWriteBinding (in category 'as yet unclassified') ----- isSpecialWriteBinding ^ true! Item was added: + ----- Method: Alias>>literalEqual: (in category 'error handling') ----- + literalEqual: other + "Two aliases are equal if they have the same source" + + ^ self species = other species and: [self source == other source]! Item was added: + ----- Method: Alias>>source (in category 'accessing') ----- + source + ^ source! Item was changed: + ----- Method: Alias>>value (in category 'evaluating') ----- - ----- Method: Alias>>value (in category 'as yet unclassified') ----- value ^ source value! Item was changed: + ----- Method: Alias>>value: (in category 'accessing') ----- - ----- Method: Alias>>value: (in category 'as yet unclassified') ----- value: anObject source value: anObject! Item was added: + AbstractBinding subclass: #ClassBinding + instanceVariableNames: 'value' + classVariableNames: '' + poolDictionaries: '' + category: 'Environments-Core'! Item was added: + ----- Method: ClassBinding class>>key:value: (in category 'as yet unclassified') ----- + key: key value: value + ^ self basicNew initializeWithKey: key value: value! Item was added: + ----- Method: ClassBinding>>asBinding: (in category 'as yet unclassified') ----- + asBinding: aSymbol + ^ self class key: aSymbol value: value! Item was added: + ----- Method: ClassBinding>>canAssign (in category 'as yet unclassified') ----- + canAssign + ^ false! Item was added: + ----- Method: ClassBinding>>initializeWithKey:value: (in category 'as yet unclassified') ----- + initializeWithKey: kObject value: vObject + self initialize. + key := kObject. + value := vObject.! Item was added: + ----- Method: ClassBinding>>isSpecialWriteBinding (in category 'as yet unclassified') ----- + isSpecialWriteBinding + ^ true! Item was added: + ----- Method: ClassBinding>>literalEqual: (in category 'as yet unclassified') ----- + literalEqual: other + "Class bindings are equal when the bind the same class" + + ^ self species = other species and: [self value = other value]! Item was added: + ----- Method: ClassBinding>>value (in category 'as yet unclassified') ----- + value + ^ value! Item was added: + ----- Method: ClassBinding>>value: (in category 'as yet unclassified') ----- + value: anObject + (AttemptToWriteReadOnlyGlobal signal: 'Cannot store into read-only bindings') + ifTrue: [value := anObject]! Item was added: + AbstractBinding subclass: #Global + instanceVariableNames: 'value' + classVariableNames: '' + poolDictionaries: '' + category: 'Environments-Core'! Item was added: + ----- Method: Global class>>key:value: (in category 'as yet unclassified') ----- + key: aSymbol value: anObject + ^ self basicNew initializeWithKey: aSymbol value: anObject! Item was added: + ----- Method: Global>>asBinding: (in category 'as yet unclassified') ----- + asBinding: aSymbol + ^ Alias key: aSymbol source: self! Item was added: + ----- Method: Global>>initializeWithKey:value: (in category 'as yet unclassified') ----- + initializeWithKey: aSymbol value: anObject + self initialize. + key := aSymbol. + value := anObject! Item was added: + ----- Method: Global>>literalEqual: (in category 'as yet unclassified') ----- + literalEqual: other + "Globals are only equal to themselves, since another global with the same + name could have a different value in the future." + + ^ self == other! Item was added: + ----- Method: Global>>value (in category 'as yet unclassified') ----- + value + ^ value! Item was added: + ----- Method: Global>>value: (in category 'as yet unclassified') ----- + value: anObject + value := anObject! Item was added: + ----- Method: Symbol>>=> (in category '*environments') ----- + => anObject + + ^ anObject isBehavior + ifTrue: [ClassBinding key: self value: anObject] + ifFalse: [Global key: self value: anObject]!
1
0
0
0
The Trunk: Environments-cwp.19.mcz
by commits@source.squeak.org
02 Apr '13
02 Apr '13
Colin Putney uploaded a new version of Environments to project The Trunk:
http://source.squeak.org/trunk/Environments-cwp.19.mcz
==================== Summary ==================== Name: Environments-cwp.19 Author: cwp Time: 1 April 2013, 11:08:28.022 pm UUID: 90a9eda4-b8ad-4f7e-9e71-c5e940c08e4f Ancestors: Environments-cwp.18 Bindings cleanup stage 1/2. =============== Diff against Environments-cwp.18 =============== Item was added: + LookupKey subclass: #AbstractBinding + instanceVariableNames: '' + classVariableNames: '' + poolDictionaries: '' + category: 'Environments-Core'! Item was added: + ----- Method: AbstractBinding class>>convertInstances (in category 'as yet unclassified') ----- + convertInstances + | new old | + old := Binding allInstances. + new := old collect: [:ea | ClassBinding key: ea key value: ea value]. + old elementsForwardIdentityTo: new. + + old := ReadOnlyVariableBinding allInstances. + new := old collect: [:ea | ClassBinding key: ea key value: ea value]. + old elementsForwardIdentityTo: new. + + Environment allInstancesDo: + [:env | + #('contents' 'bindings' 'public' 'undeclared') do: + [:var || dict | + old := Array new writeStream. + new := Array new writeStream. + dict := env instVarNamed: var. + dict associations do: + [:binding | + binding class == Association ifTrue: + [old nextPut: binding. + new nextPut: binding key => binding value]]. + old contents elementsForwardIdentityTo: new contents]]! Item was added: + ----- Method: AbstractBinding class>>initialize (in category 'as yet unclassified') ----- + initialize + self convertInstances! Item was added: + ----- Method: AbstractBinding>>analogousCodeTo: (in category 'as yet unclassified') ----- + analogousCodeTo: anObject + "For MethodProperties comparison." + ^anObject isVariableBinding + and: [self key = anObject key + and: [self value = anObject value]]! Item was added: + ----- Method: AbstractBinding>>canAssign (in category 'as yet unclassified') ----- + canAssign + ^ true! Item was added: + ----- Method: AbstractBinding>>isSpecialReadBinding (in category 'as yet unclassified') ----- + isSpecialReadBinding + ^ false! Item was added: + ----- Method: AbstractBinding>>isSpecialWriteBinding (in category 'as yet unclassified') ----- + isSpecialWriteBinding + ^ false! Item was added: + ----- Method: AbstractBinding>>isVariableBinding (in category 'as yet unclassified') ----- + isVariableBinding + ^ true! Item was added: + ----- Method: AbstractBinding>>objectForDataStream: (in category 'as yet unclassified') ----- + objectForDataStream: refStream + "It's not yet clear how serialization should work in the presence of environments" + + self shouldBeImplemented.! Item was added: + ----- Method: AbstractBinding>>printOn: (in category 'as yet unclassified') ----- + printOn: aStream + key printOn: aStream. + aStream nextPutAll: '=>'. + self value printOn: aStream! Item was changed: + AbstractBinding subclass: #Alias - LookupKey subclass: #Alias instanceVariableNames: 'source' classVariableNames: '' poolDictionaries: '' category: 'Environments-Core'! Item was changed: + ----- Method: Alias>>initializeWithKey:source: (in category 'initialization') ----- - ----- Method: Alias>>initializeWithKey:source: (in category 'as yet unclassified') ----- initializeWithKey: aSymbol source: anAssociation self initialize. key := aSymbol. source := anAssociation! Item was changed: + ----- Method: Alias>>isSpecialReadBinding (in category 'testing') ----- - ----- Method: Alias>>isSpecialReadBinding (in category 'as yet unclassified') ----- isSpecialReadBinding ^ true! Item was changed: + ----- Method: Alias>>isSpecialWriteBinding (in category 'testing') ----- - ----- Method: Alias>>isSpecialWriteBinding (in category 'as yet unclassified') ----- isSpecialWriteBinding ^ true! Item was added: + ----- Method: Alias>>literalEqual: (in category 'error handling') ----- + literalEqual: other + "Two aliases are equal if they have the same source" + + ^ self species = other species and: [self source == other source]! Item was added: + ----- Method: Alias>>source (in category 'accessing') ----- + source + ^ source! Item was changed: + ----- Method: Alias>>value (in category 'evaluating') ----- - ----- Method: Alias>>value (in category 'as yet unclassified') ----- value ^ source value! Item was changed: + ----- Method: Alias>>value: (in category 'accessing') ----- - ----- Method: Alias>>value: (in category 'as yet unclassified') ----- value: anObject source value: anObject! Item was added: + AbstractBinding subclass: #ClassBinding + instanceVariableNames: 'value' + classVariableNames: '' + poolDictionaries: '' + category: 'Environments-Core'! Item was added: + ----- Method: ClassBinding class>>key:value: (in category 'as yet unclassified') ----- + key: key value: value + ^ self basicNew initializeWithKey: key value: value! Item was added: + ----- Method: ClassBinding>>asBinding: (in category 'as yet unclassified') ----- + asBinding: aSymbol + ^ self class key: aSymbol value: value! Item was added: + ----- Method: ClassBinding>>canAssign (in category 'as yet unclassified') ----- + canAssign + ^ false! Item was added: + ----- Method: ClassBinding>>initializeWithKey:value: (in category 'as yet unclassified') ----- + initializeWithKey: kObject value: vObject + self initialize. + key := kObject. + value := vObject.! Item was added: + ----- Method: ClassBinding>>isSpecialWriteBinding (in category 'as yet unclassified') ----- + isSpecialWriteBinding + ^ true! Item was added: + ----- Method: ClassBinding>>literalEqual: (in category 'as yet unclassified') ----- + literalEqual: other + "Class bindings are equal when the bind the same class" + + ^ self species = other species and: [self value = other value]! Item was added: + ----- Method: ClassBinding>>value (in category 'as yet unclassified') ----- + value + ^ value! Item was added: + ----- Method: ClassBinding>>value: (in category 'as yet unclassified') ----- + value: anObject + (AttemptToWriteReadOnlyGlobal signal: 'Cannot store into read-only bindings') + ifTrue: [value := anObject]! Item was added: + AbstractBinding subclass: #Global + instanceVariableNames: 'value' + classVariableNames: '' + poolDictionaries: '' + category: 'Environments-Core'! Item was added: + ----- Method: Global class>>key:value: (in category 'as yet unclassified') ----- + key: aSymbol value: anObject + ^ self basicNew initializeWithKey: aSymbol value: anObject! Item was added: + ----- Method: Global>>asBinding: (in category 'as yet unclassified') ----- + asBinding: aSymbol + ^ Alias key: aSymbol source: self! Item was added: + ----- Method: Global>>initializeWithKey:value: (in category 'as yet unclassified') ----- + initializeWithKey: aSymbol value: anObject + self initialize. + key := aSymbol. + value := anObject! Item was added: + ----- Method: Global>>literalEqual: (in category 'as yet unclassified') ----- + literalEqual: other + "Globals are only equal to themselves, since another global with the same + name could have a different value in the future." + + ^ self == other! Item was added: + ----- Method: Global>>value (in category 'as yet unclassified') ----- + value + ^ value! Item was added: + ----- Method: Global>>value: (in category 'as yet unclassified') ----- + value: anObject + value := anObject! Item was added: + ----- Method: Symbol>>=> (in category '*environments') ----- + => anObject + + ^ anObject isBehavior + ifTrue: [ClassBinding key: self value: anObject] + ifFalse: [Global key: self value: anObject]!
1
0
0
0
← Newer
1
...
17
18
19
20
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Results per page:
10
25
50
100
200