CollectionsTests

ArrayTest
This is the unit test for the class Array. 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
aValue
accessCollection
anIndex
anotherElementNotIn
anotherElementOrAssociationIn
return an element (or an association for Dictionary ) present in 'collection'
anotherElementOrAssociationNotIn
return an element (or an association for Dictionary )not present in 'collection'
anotherValue
assertSameContents:whenConvertedTo:
collection
collectionClass
collectionInForIncluding
collectionMoreThan1NoDuplicates
return a collection of size 5 without equal elements
collectionMoreThan5Elements
return a collection including at least 5 elements
collectionNotIncluded
collectionOfFloat
collectionWith1TimeSubcollection
collectionWith2TimeSubcollection
collectionWithCharacters
collectionWithCopy
return a collection of type 'self collectionWIithoutEqualsElements clas' containing no elements equals ( with identity equality)
but 2 elements only equals with classic equality
collectionWithCopyNonIdentical
return a collection that include elements for which 'copy' return a different object (this is not the case of SmallInteger)
collectionWithElementsToRemove
collectionWithEqualElements
collectionWithIdentical
return a collection of type : 'self collectionWIithoutEqualsElements class containing two elements equals ( with identity equality)
collectionWithNonIdentitySameAtEndAndBegining
return a collection with elements at end and begining equals only with classic equality (they are not the same object).
(others elements of the collection are not equal to those elements)
collectionWithSameAtEndAndBegining
return a collection with elements at end and begining equals .
(others elements of the collection are not equal to those elements)
collectionWithSortableElements
return a collection elements that can be sorte ( understanding message ' < ' or ' > ')
collectionWithoutEqualElements
collectionWithoutEqualsElements
collectionWithoutNilElements
return a collection that doesn't includes a nil element and that doesn't includes equal elements'
element
elementInCollectionOfFloat
elementInForCopy
elementInForElementAccessing
return an element inculded in 'accessCollection '
elementInForIncludesTest
elementInForIndexAccess
elementInForIndexAccessing
elementInForOccurrences
elementInForReplacement
elementNotIn
return an element not included in 'nonEmpty'
elementNotInForCopy
elementNotInForElementAccessing
return an element not included in 'accessCollection'
elementNotInForIndexAccessing
elementNotInForOccurrences
elementToAdd
elementTwiceInForOccurrences
return an element included exactly two time in # collectionWithEqualElements
elementsCopyNonIdenticalWithoutEqualElements
return a collection that does niot include equal elements ( classic equality )
empty
expectedSizeAfterReject
firstCollection
firstEven
Returns the first even number of #collection
firstIndex
firstOdd
Returns the first odd number of #collection
floatCollectionWithSameAtEndAndBegining
return a collection with elements at end and begining equals only with classic equality (they are not the same object).
(others elements of the collection are not equal to those elements)
indexArray
indexInForCollectionWithoutDuplicates
indexInNonEmpty
integerCollection
integerCollectionWithoutEqualElements
moreThan3Elements
return a collection including atLeast 3 elements
moreThan4Elements
return a collection including at leat 4 elements
newElement
nonEmpty
nonEmpty1Element
nonEmptyMoreThan1Element
oldSubCollection
replacementCollection
replacementCollectionSameSize
result
resultForCollectElementsClass
return the retsult expected by collecting the class of each element of collectionWithoutNilElements
secondCollection
secondIndex
selectorToAccessValuePutIn
return the selector of the method that should be invoked to access an element
setUp
sizeCollection
Answers a collection not empty
smallerIndex
sortedInAscendingOrderCollection
speciesClass
subCollectionNotIn
test0CopyTest
test0FixtureIncludeTest
test0FixtureOccurrencesTest
test0FixtureSequencedConcatenationTest
test0FixtureTConvertAsSetForMultiplinessTest
a collection ofFloat with equal elements:
testAnySatisfy
testAsArray
self debug: #testAsArray3
testAtWrap2
testCopyEmptyWith
self debug: #testCopyWith
testCopyEmptyWithout
self debug: #testCopyEmptyWithout
testCopyEmptyWithoutAll
self debug: #testCopyEmptyWithoutAll
testCopyNonEmptyWith
self debug: #testCopyNonEmptyWith
testCopyNonEmptyWithoutAll
self debug: #testCopyNonEmptyWithoutAll
testCopyNonEmptyWithoutAllNotIncluded
testCopyNonEmptyWithoutNotIncluded
self debug: #testCopyNonEmptyWithoutNotIncluded
testDo
testDo2
dc: Bad test, it assumes that a new instance of #speciesClass allows addition with #add:. This is not the case of Interval for which species is Array.
testIdentityIncludes
test the comportement in presence of elements 'includes' but not 'identityIncludes'
testIdentityIndexOf
self debug: #testIdentityIndexOf
testIdentityIndexOfIAbsent
self debug: #testIdentityIndexOfIfAbsent
testIndexOf
self debug: #testIndexOf
testIndexOfIfAbsent
self debug: #testIndexOfIfAbsent
testIndexOfStartingAt
self debug: #testLastIndexOf
testIndexOfSubCollectionStartingAt
self debug: #testIndexOfIfAbsent
testIndexOfSubCollectionStartingAtIfAbsent
self debug: #testIndexOfIfAbsent
testIsArray
testIsLiteral
We work with a copy of literalArray, to avoid corrupting the code.
testIsSelfEvaluating
testLastIndexOf
self debug: #testLastIndexOf
testLastIndexOfIfAbsent
self debug: #testIndexOfIfAbsent
testLastIndexOfStartingAt
self debug: #testLastIndexOf
testLiteralEqual
testNewWithSize
testOccurrencesOf
testOccurrencesOfEmpty
testOccurrencesOfNotIn
testPremultiply
testPrinting
unsortedCollection
valuePutIn
the value that we will put in the non empty collection
withEqualElements
return a collection of float including equal elements (classic equality)
AssociationTest
An AssociationTest is xxxxxxxxx.
Instance Variables
a: <Object>
b: <Object>
a
- xxxxx
b
- xxxxx
setUp
testComparison
testEquality
testHash
testIsSelfEvaluating
BagTest
A BagTest is xxxxxxxxx.
Instance Variables
collectionIn: <Object>
collectionNotIn: <Object>
collectionOfString: <Object>
collectionWithCharacters: <Object>
collectionWithElement: <Object>
collectionWithoutNilMoreThan5: <Object>
element: <Object>
elementExistsTwice: <Object>
elementNotIn: <Object>
empty: <Object>
emptyButAllocatedWith20: <Object>
nonEmpty: <Object>
otherCollectionWithoutEqualElements: <Object>
result: <Object>
collectionIn
- xxxxx
collectionNotIn
- xxxxx
collectionOfString
- xxxxx
collectionWithCharacters
- xxxxx
collectionWithElement
- xxxxx
collectionWithoutNilMoreThan5
- xxxxx
element
- xxxxx
elementExistsTwice
- xxxxx
elementNotIn
- xxxxx
empty
- xxxxx
emptyButAllocatedWith20
- xxxxx
nonEmpty
- xxxxx
otherCollectionWithoutEqualElements
- xxxxx
result
- xxxxx
anotherElementNotIn
anotherElementOrAssociationIn
return an element (or an association for Dictionary ) present in 'collection'
anotherElementOrAssociationNotIn
return an element (or an association for Dictionary )not present in 'collection'
collection
collectionClass
collectionInForIncluding
collectionMoreThan5Elements
return a collection including at least 5 elements
collectionNotIncluded
collectionOfFloat
collectionWithCharacters
collectionWithCopyNonIdentical
return a collection that include elements for which 'copy' return a different object (this is not the case of SmallInteger)
collectionWithElement
Returns a collection that already includes what is returned by #element.
collectionWithElementsToRemove
collectionWithEqualElements
collectionWithSortableElements
return a collection elements that can be sorte ( understanding message ' < ' or ' > ')
collectionWithoutEqualElements
collectionWithoutNilElements
return a collection that doesn't includes a nil element and that doesn't includes equal elements'
doWithoutNumber
element
elementInForIncludesTest
elementInForOccurrences
return an element included in nonEmpty
elementNotIn
elementNotInForOccurrences
elementToAdd
elementTwiceIn
elementTwiceInForOccurrences
return an element included exactly two time in # collectionWithEqualElements
elementsCopyNonIdenticalWithoutEqualElements
return a collection that does niot incllude equal elements ( classic equality )
all elements included are elements for which copy is not identical to the element
empty
emptyButAllocatedWith20
expectedElementByDetect
expectedSizeAfterReject
firstCollection
return a collection that will be the first part of the concatenation
integerCollectionWithoutEqualElements
nonEmpty
nonEmpty1Element
nonEmptyWithoutEqualElements
return a collection without equal elements
otherCollection
result
resultForCollectElementsClass
return the retsult expected by collecting the class of each element of collectionWithoutNilElements
secondCollection
return a collection that will be the second part of the concatenation
selectedNumber
setUp
sizeCollection
Answers a collection not empty
speciesClass
test0CopyTest
testAdd
self run: #testAdd
testAddWithOccurrences
self debug:#testAddWithOccurrences
testAnySastify
when all elements satisty the condition, should return true :
testAsBag
testAsSet
testCopy
self run: #testCopy
testCopyEmptyWith
self debug: #testCopyWith
testCopyEmptyWithout
self debug: #testCopyEmptyWithout
testCopyEmptyWithoutAll
self debug: #testCopyEmptyWithoutAll
testCopyNonEmptyWith
self debug: #testCopyNonEmptyWith
testCopyNonEmptyWithoutAll
self debug: #testCopyNonEmptyWithoutAll
testCopyNonEmptyWithoutAllNotIncluded
testCopyNonEmptyWithoutNotIncluded
self debug: #testCopyNonEmptyWithoutNotIncluded
testCreation
self run: #testCreation
testCumulativeCounts
self run: #testCumulativeCounts
testEqual
(self run: #testEqual)
testIdentityIncludes
test the comportement in presence of elements 'includes' but not 'identityIncludes'
testIncludesAllOfNoneThere
self debug: #testIncludesAllOfNoneThere'
testIncludesAnyOfNoneThere
self debug: #testIncludesAnyOfNoneThere'
testIncludesElementIsNotThere
self debug: #testIncludesElementIsNotThere
testIncludesSubstringAnywhere
self debug: #testIncludesSubstringAnywher'
testOccurrencesOf
self debug: #testOccurrencesOf
testRemove
self run: #testRemove
testRemoveAll
Allows one to remove all elements of a collection
testRemoveElementThatExistsTwice
self debug: #testRemoveElementThatDoesExistsTwice
testSortedCounts
self run: #testSortedCounts
testSortedElements
self run: #testSortedElements
withEqualElements
return a collection including equal elements (classic equality)
Base64MimeConverterTest
This is the unit test for the class Base64MimeConverter. 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
setUp
testMimeEncodeDecode
ByteArrayTest
A ByteArrayTest is xxxxxxxxx.
Instance Variables
testFourthByteArraysReturnTheCorrectValues
CharacterSetTest
CharacterSetTest holds tests for CharacterSet
testCopy
CharacterTest
This is the unit test for the class Character. 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
testCodePoint
testHex
testInstanceCreation
testNew
testPrintString
testPrintStringAll
testStoreString
testStoreStringAll
CollectionRootTest
I'm the root of the hierarchy of the collection tests.
collectionWithoutNilElements
return a collection that doesn't includes a nil element and that doesn't includes equal elements'
doWithoutNumber
element
elementTwiceIn
empty
expectedElementByDetect
isAbstract
nonEmpty
testDoSeparatedBy
testRejectNoReject
DictionaryTest
A DictionaryTest is xxxxxxxxx.
Instance Variables
associationNotIn: <Object>
collectionIncluded: <Object>
collectionNotIncluded: <Object>
dictionaryNotIncluded: <Object>
dictionaryWithDuplicateValues: <Object>
duplicateValue: <Object>
emptyDict: <Object>
indexArray: <Object>
keyNotIn: <Object>
nonEmpty1Element: <Object>
nonEmpty5ElementsNoDuplicates: <Object>
nonEmptyDict: <Object>
nonEmptyWithFloat: <Object>
valueArray: <Object>
valueNotIn: <Object>
associationNotIn
- xxxxx
collectionIncluded
- xxxxx
collectionNotIncluded
- xxxxx
dictionaryNotIncluded
- xxxxx
dictionaryWithDuplicateValues
- xxxxx
duplicateValue
- xxxxx
emptyDict
- xxxxx
indexArray
- xxxxx
keyNotIn
- xxxxx
nonEmpty1Element
- xxxxx
nonEmpty5ElementsNoDuplicates
- xxxxx
nonEmptyDict
- xxxxx
nonEmptyWithFloat
- xxxxx
valueArray
- xxxxx
valueNotIn
- xxxxx
aValue
anIndex
anotherElementNotIn
anotherElementOrAssociationIn
return an element (or an association for Dictionary ) present in 'collection'
anotherElementOrAssociationNotIn
return an element (or an association for Dictionary )not present in 'collection'
anotherValue
associationWithKeyAlreadyInToAdd
return an association that will be used to add to nonEmptyDict (the key of this association is already included in nonEmptyDict)
associationWithKeyNotInToAdd
return an association that will be used to add to nonEmptyDict
classToBeTested
collection
collectionClass
return the class to be used to create instances of the class tested
collectionNotIncluded
return a collection for wich each element is not included in 'nonEmpty'
collectionWithElement
Returns a collection that already includes what is returned by #element.
collectionWithElementsToRemove
return a collection of elements included in 'nonEmpty'
collectionWithEqualElements
return a collecition including atLeast two elements equal
collectionWithSortableElements
return a collection elements that can be sorte ( understanding message ' < ' or ' > ')
collectionWithoutEqualElements
return a collection without equal elements
collectionWithoutNilElements
return a collection that doesn't includes a nil element and that doesn't includes equal elements'
element
elementNotIn
return an element not included in 'nonEmpty'
elementNotInForOccurrences
elementToAdd
return an element of type 'nonEmpy' elements'type'
elementTwiceInForOccurrences
return an element included exactly two time in # collectionWithEqualElements
empty
emptyDict
expectedElementByDetect
expectedSizeAfterReject
indexInNonEmpty
return an index between bounds of 'nonEmpty'
integerCollectionWithoutEqualElements
return a collection of integer without equal elements
keyNotIn
return a key not included in nonEmpty
keyNotInNonEmpty
return a key not included in nonEmpty
keyNotInNonEmptyDict
return a key not included in nonEmptyDict
newEmptyDict
nonEmpty
nonEmpty1Element
return a collection of size 1 including one element
nonEmptyDict
nonEmptyDifferentFromNonEmptyDict
return a dictionary for which all keys are not included in nonEmptyDict
nonEmptyWithCopyNonIdentical
return a collection including elements for wich copy is not identical to the initial element ( this is not the cas of Integer )
nonEmptyWithoutEqualsValues
return a dictionary that doesn't include equal values'
otherCollection
Returns a collection that does not include what is returned by #element.
result
setUp
sizeCollection
Answers a collection not empty
speciesClass
testAdd
| dict |
dict := self emptyDict.
dict add: #a -> 1.
dict add: #b -> 2.
self assert: (dict at: #a) = 1.
self assert: (dict at: #b) = 2
testAddWithKeyAlreadyIn
testAddWithKeyNotIn
testDictionaryConcatenationWithoutCommonKeys
self run: #testDictionaryConcatenation
testHasBindingThatBeginsWith
testIncludeAssociation
testIncludes
testIncludesAllOfNoneThere
self debug: #testIncludesAllOfNoneThere'
testIncludesAnyOfNoneThere
self debug: #testIncludesAnyOfNoneThere'
testIncludesAssociationNoValue
testIncludesAssociationWithValue
testIncludesElementIsNotThere
self debug: #testIncludesElementIsNotThere
testIncludesSubstringAnywhere
self debug: #testIncludesSubstringAnywher'
testIsDictionary
testKeyForIdentity
testNew
testOccurrencesOf
self run:#testOccurrencesOf
testRemoveAll
Allows one to remove all elements of a collection
valueNotIn
return a value not included in nonEmpty
valueNotInNonEmpty
return a value not included in nonEmpty
FloatArrayTest
These tests are used to assert that FloatArrayPlugin has same results as Float asIEEE32BitWord
aValue
return a value to put into nonEmpty
anIndex
return an index in nonEmpty bounds
anotherElementNotIn
return an element different of 'elementNotIn' not included in 'nonEmpty'
anotherElementOrAssociationIn
return an element (or an association for Dictionary ) present in 'collection'
anotherElementOrAssociationNotIn
return an element (or an association for Dictionary )not present in 'collection'
anotherValue
return a value ( not eual to 'aValue' ) to put into nonEmpty
collection
collectionClass
collectionMoreThan1NoDuplicates
return a collection of size > 1 without equal elements
collectionMoreThan5Elements
return a collection including at least 5 elements
collectionNotIncluded
return a collection for wich each element is not included in 'nonEmpty'
collectionWith1TimeSubcollection
return a collection including 'oldSubCollection' only one time
collectionWith2TimeSubcollection
return a collection including 'oldSubCollection' two or many time
collectionWithCopyNonIdentical
return a collection that include elements for which 'copy' return a different object (this is not the case of SmallInteger)
collectionWithElementsToRemove
return a collection of elements included in 'nonEmpty'
collectionWithNonIdentitySameAtEndAndBegining
return a collection with elements at end and begining equals only with classic equality (they are not the same object).
(others elements of the collection are not equal to those elements)
collectionWithSameAtEndAndBegining
return a collection with elements at end and begining equals .
(others elements of the collection are not equal to those elements)
collectionWithSortableElements
return a collection elements that can be sorte ( understanding message ' < ' or ' > ')
collectionWithoutEqualElements
return a collection without equal elements
collectionWithoutEqualsElements
return a collection not including equal elements
collectionWithoutNilElements
return a collection that doesn't includes a nil element and that doesn't includes equal elements'
elementInForElementAccessing
return an element inculded in 'moreThan4Elements'
elementInForIndexAccessing
return an element included in 'collectionMoreThan1NoDuplicates'
elementNotIn
return an element not included in 'nonEmpty'
elementNotInForElementAccessing
return an element not included in 'moreThan4Elements'
elementNotInForIndexAccessing
return an element not included in 'collectionMoreThan1NoDuplicates'
elementToAdd
return an element of type 'nonEmpy' elements'type' not yet included in nonEmpty
elementsCopyNonIdenticalWithoutEqualElements
return a collection that does niot incllude equal elements ( classic equality )
all elements included are elements for which copy is not identical to the element
empty
firstCollection
return a collection that will be the first part of the concatenation
firstIndex
return an index between 'nonEmpty' bounds that is < to 'second index'
indexArray
return a Collection including indexes between bounds of 'nonEmpty'
indexInForCollectionWithoutDuplicates
return an index between 'collectionWithoutEqualsElements' bounds
indexInNonEmpty
return an index between bounds of 'nonEmpty'
moreThan3Elements
return a collection including atLeast 3 elements
moreThan4Elements
return a collection including at leat 4 elements
newElement
return an element that will be put in the collection in place of another
nonEmpty
nonEmpty1Element
return a collection of size 1 including one element
nonEmptyMoreThan1Element
return a collection that doesn't includes equal elements' and doesn't include nil elements'
oldSubCollection
return a subCollection included in collectionWith1TimeSubcollection .
ex : subCollection := #( 2 3 4) and collectionWith1TimeSubcollection := #(1 2 3 4 5)
replacementCollection
return a collection that will be used to replace 'oldSubcollection' in ' collectionWith1TimeSubcollection'
replacementCollectionSameSize
return a collection of size (secondIndex - firstIndex + 1)
secondCollection
return a collection that will be the second part of the concatenation
secondIndex
return an index between 'nonEmpty' bounds that is > to 'first index'
setUp
sizeCollection
Answers a collection not empty
sortedInAscendingOrderCollection
return a collection sorted in an acsending order
subCollectionNotIn
return a collection for which at least one element is not included in 'moreThan4Elements'
testArithmeticCoercion
This test is related to http://bugs.squeak.org/view.php?id=6782
testFloatArrayPluginPrimitiveAt
if FloatArrayPlugin primitive are not here, this test is dumb.
Otherwise, it will compare primitive and #fromIEEE32Bit:
testFloatArrayPluginPrimitiveAtPut
if FloatArrayPlugin primitive are not here, this test is dumb.
Otherwise, it will compare primitive and #asIEEE32BitWord
unsortedCollection
retur a collection that is not yat sorted
withEqualElements
HeapTest
A HeapTest is xxxxxxxxx.
Instance Variables
collection: <Object>
collectionNotIncluded: <Object>
collectionWithDuplicateElement: <Object>
collectionWithElement: <Object>
doWithoutNumber: <Object>
duplicateElement: <Object>
element: <Object>
elementNotIn: <Object>
elementTwiceIn: <Object>
empty: <Object>
expectedElementByDetect: <Object>
expectedSizeAfterReject: <Object>
floatCollection: <Object>
indexArray: <Object>
nonEmpty: <Object>
nonEmpty1Element: <Object>
nonEmpty5ElementsWithoutDuplicate: <Object>
otherCollection: <Object>
result: <Object>
sameAtEndAndBegining: <Object>
speciesClass: <Object>
subCollection: <Object>
collection
- xxxxx
collectionNotIncluded
- xxxxx
collectionWithDuplicateElement
- xxxxx
collectionWithElement
- xxxxx
doWithoutNumber
- xxxxx
duplicateElement
- xxxxx
element
- xxxxx
elementNotIn
- xxxxx
elementTwiceIn
- xxxxx
empty
- xxxxx
expectedElementByDetect
- xxxxx
expectedSizeAfterReject
- xxxxx
floatCollection
- xxxxx
indexArray
- xxxxx
nonEmpty
- xxxxx
nonEmpty1Element
- xxxxx
nonEmpty5ElementsWithoutDuplicate
- xxxxx
otherCollection
- xxxxx
result
- xxxxx
sameAtEndAndBegining
- xxxxx
speciesClass
- xxxxx
subCollection
- xxxxx
aValue
return a value to put into nonEmpty
accessCollection
anotherElementNotIn
return an element different of 'elementNotIn' not included in 'nonEmpty'
anotherElementOrAssociationIn
return an element (or an association for Dictionary ) present in 'collection'
anotherElementOrAssociationNotIn
return an element (or an association for Dictionary )not present in 'collection'
collection
collectionClass
return the class to be used to create instances of the class tested
collectionMoreThan1NoDuplicates
return a collection of size > 1 without equal elements
collectionMoreThan5Elements
return a collection including at least 5 elements
collectionNotIncluded
return a collection for wich each element is not included in 'nonEmpty'
collectionOfSize5
return a collection of size 5
collectionWith5Elements
return a collection of size 5 including 5 elements
collectionWithCopyNonIdentical
return a collection that include elements for which 'copy' return a different object (this is not the case of SmallInteger)
collectionWithElement
collectionWithElementsToRemove
return a collection of elements included in 'nonEmpty'
collectionWithEqualElements
return a collecition including atLeast two elements equal
collectionWithNonIdentitySameAtEndAndBegining
return a collection with elements at end and begining equals only with classic equality (they are not the same object).
(others elements of the collection are not equal to those elements)
collectionWithSameAtEndAndBegining
return a collection with elements at end and begining equals .
(others elements of the collection are not equal to those elements)
collectionWithSortableElements
return a collection elements that can be sorte ( understanding message ' < ' or ' > ')
collectionWithoutEqualElements
return a collection without equal elements
collectionWithoutEqualsElements
return a collection not including equal elements
collectionWithoutNilElements
return a collection that doesn't includes a nil element and that doesn't includes equal elements'
element
elementInForElementAccessing
return an element inculded in 'moreThan4Elements'
elementInForIndexAccessing
return an element included in 'collectionMoreThan1NoDuplicates'
elementInForOccurrences
elementNotIn
elementNotInForElementAccessing
return an element not included in 'moreThan4Elements'
elementNotInForIndexAccessing
return an element not included in 'collectionMoreThan1NoDuplicates'
elementNotInForOccurrences
elementToAdd
return an element of type 'nonEmpy' elements'type'
elementTwiceIn
elementTwiceInForOccurrences
return an element included exactly two time in # collectionWithEqualElements
elementsCopyNonIdenticalWithoutEqualElements
return a collection that does niot incllude equal elements ( classic equality )
all elements included are elements for which copy is not identical to the element
empty
expectedElementByDetect
Returns the first even element of #collection
expectedSizeAfterReject
Number of even elements in #collection
firstCollection
return a collection that will be the first part of the concatenation
firstIndex
return an index between 'nonEmpty' bounds that is < to 'second index'
heapExample
HeapTest new heapExample
heapSortExample
HeapTest new heapSortExample
indexArray
return a Collection including indexes between bounds of 'nonEmpty'
indexInForCollectionWithoutDuplicates
return an index between 'collectionWithoutEqualsElements' bounds
indexInNonEmpty
return an index between bounds of 'nonEmpty'
integerCollectionWithoutEqualElements
return a collection of integer without equal elements
moreThan3Elements
return a collection including atLeast 3 elements
moreThan4Elements
return a collection including at leat 4 elements
newElement
return an element that will be put in the collection in place of another
nonEmpty
nonEmpty1Element
return a collection of size 1 including one element
nonEmptyMoreThan1Element
return a collection that don't includes equal elements'
nonEmptyWithoutEqualElements
return a collection without equal elements
otherCollection
replacementCollection
return a collection including elements of type 'collectionOfSize5' elements'type
replacementCollectionSameSize
return a collection of size (secondIndex - firstIndex + 1)
result
secondCollection
return a collection that will be the second part of the concatenation
secondIndex
return an index between 'nonEmpty' bounds that is > to 'second index'
setUp
sizeCollection
Answers a collection whose #size is 4
speciesClass
subCollectionNotIn
return a collection for which at least one element is not included in 'moreThan4Elements'
test0FixtureRequirementsOfTGrowableTest
test1
The first element of each array is the sort value, and the second will be updated by the heap with the index of the element within the heap.
testAdd
self run: #testAdd
testAddNonEmptyGrowsWhenNewElement
self debug: #testAddNonEmptyGrowsWhenNewElement
testAt
self run: #testAt
testDo
self run: #testDo
testExamples
testFirst
self run: #testFirst
testHeap
self run: #testHeap
testRemove
self run: #testRemove
testSortBlock
self run: #testSortBlock
valuePutIn
the value that we will put in the non empty collection
withEqualElements
IdentityBagTest
An IdentityBagTest is xxxxxxxxx.
Instance Variables
elementAlreadyIncluded: <Object>
elementToCopy: <Object>
equalNotIdenticalElement: <Object>
identityBagNonEmptyNoDuplicate5Elements: <Object>
identityBagWithoutElement: <Object>
elementAlreadyIncluded
- xxxxx
elementToCopy
- xxxxx
equalNotIdenticalElement
- xxxxx
identityBagNonEmptyNoDuplicate5Elements
- xxxxx
identityBagWithoutElement
- xxxxx
elementToCopy
equalNotIdenticalElement
identityCollectionWithElementsCopyNotIdentical
Returns a collection including elements for which #copy doesn't return the same object.
speciesClass
testAsSetWithEqualsElements
testIdentity
self run:#testIdentity
testIdentityAdd
IdentityDictionaryTest
An IdentityDictionaryTest is xxxxxxxxx.
Instance Variables
classToBeTested
shouldInheritSelectors
testIdentity
IdentitySetTest
An IdentitySetTest is xxxxxxxxx.
Instance Variables
floatCollection: <Object>
floatCollection
- xxxxx
classToBeTested
identityCollectionWithElementsCopyNotIdentical
return a collection including elements for which #copy return a new object
shouldInheritSelectors
testIdentity
self run:#testIdentity
IntervalTest
An IntervalTest is xxxxxxxxx.
Instance Variables
anotherCollection: <Object>
collectionOfFloat: <Object>
collectionWithSubCollection: <Object>
collectionWithoutNil: <Object>
elementIn: <Object>
elementNotIn: <Object>
empty: <Object>
nonEmpty: <Object>
nonEmpty1Element: <Object>
one: <Object>
result: <Object>
subCollection: <Object>
subCollectionInNonEmpty: <Object>
subCollectionNotIn: <Object>
anotherCollection
- xxxxx
collectionOfFloat
- xxxxx
collectionWithSubCollection
- xxxxx
collectionWithoutNil
- xxxxx
elementIn
- xxxxx
elementNotIn
- xxxxx
empty
- xxxxx
nonEmpty
- xxxxx
nonEmpty1Element
- xxxxx
one
- xxxxx
result
- xxxxx
subCollection
- xxxxx
subCollectionInNonEmpty
- xxxxx
subCollectionNotIn
- xxxxx
accessCollection
anotherElementNotIn
collection
collectionClass
collectionInForIncluding
collectionMoreThan1NoDuplicates
return a collection of size 5 without equal elements
collectionNotIncluded
collectionOfFloat
collectionWith1TimeSubcollection
collectionWithCopyNonIdentical
return a collection that include elements for which 'copy' return a different object (this is not the case of SmallInteger)
collectionWithElementsToRemove
collectionWithSortableElements
return a collection elements that can be sorte ( understanding message ' < ' or ' > ')
collectionWithoutEqualElements
collectionWithoutEqualsElements
collectionWithoutNilElements
return a collection that doesn't includes a nil element and that doesn't includes equal elements'
doWithoutNumber
elementInCollectionOfFloat
elementInForElementAccessing
return an element inculded in 'accessCollection '
elementInForIncludesTest
elementInForIndexAccess
elementInForIndexAccessing
elementNotIn
elementNotInForElementAccessing
return an element not included in 'accessCollection'
elementNotInForIndexAccessing
elementNotInForOccurrences
elementToAdd
empty
expectedElementByDetect
Returns the first even element of #collection
expectedSizeAfterReject
Number of even elements in #collection
firstCollection
firstEven
Returns the first even number of #collection
firstOdd
Returns the first odd number of #collection
indexInForCollectionWithoutDuplicates
indexInNonEmpty
integerCollection
integerCollectionWithoutEqualElements
moreThan3Elements
return a collection including atLeast 3 elements
moreThan4Elements
return a collection including at leat 4 elements
nonEmpty
nonEmpty1Element
nonEmptyMoreThan1Element
oldSubCollection
replacementCollection
result
resultForCollectElementsClass
return the retsult expected by collecting the class of each element of collectionWithoutNilElements
secondCollection
setUp
sizeCollection
Answers a collection whose #size is 4
speciesClass
subCollectionNotIn
test0CopyTest
test0IndexAccessingTest
testAdd
testAllButFirstElements
self debug: #testAllButFirst
testAllButLastElements
self debug: #testAllButFirst
testAsInterval
This is the same as newFrom:
testAt
testAtWrap
self debug: #testAt
testCollectThenSelectLocal
testCopyEmptyWith
self debug: #testCopyWith
testCopyEmptyWithout
self debug: #testCopyEmptyWithout
testCopyEmptyWithoutAll
self debug: #testCopyEmptyWithoutAll
testCopyNonEmptyWith
self debug: #testCopyNonEmptyWith
testCopyNonEmptyWithoutAll
self debug: #testCopyNonEmptyWithoutAll
testCopyNonEmptyWithoutNotIncluded
self debug: #testCopyNonEmptyWithoutNotIncluded
testDo
testEquals
testEquals2
testEquals3
testEquals4
testEquals5
testEquals6
testExtent
testIdentityIncludes
test the comportement in presence of elements 'includes' but not 'identityIncludes'
testIdentityIndexOf
self debug: #testIdentityIndexOf
testIdentityIndexOfIAbsent
testIncludesAllOfNoneThere
self debug: #testIncludesAllOfNoneThere'
testIncludesAnyOfNoneThere
self debug: #testIncludesAnyOfNoneThere'
testIncludesElementIsNotThere
self debug: #testIncludesElementIsNotThere
testIncludesSubstringAnywhere
self debug: #testIncludesSubstringAnywher'
testInclusionBug1603
This test is by german morales.
It is about mantis bug 1603
testInclusionBug6455
This test is about mantis bug http://bugs.squeak.org/view.php?id=6455
It should work as long as Fuzzy inclusion test feature for Interval of Float is maintained.
This is a case when tested element is near ones of actual value, but by default.
Code used to work only in the case of close numbers by excess...
testIndexOf
self debug: #testIndexOf
testIndexOfBug1602
This test is by german morales.
It is about mantis bug 1602
testIndexOfBug6455
This test is about mantis bug http://bugs.squeak.org/view.php?id=6455
It should work as long as Fuzzy inclusion test feature for Interval of Float is maintained.
This is a case when tested element is near ones of actual value, but by default.
Code used to work only in the case of close numbers by excess...
testIndexOfIfAbsent
self debug: #testIndexOfIfAbsent
testIndexOfStartingAt
self debug: #testLastIndexOf
testIndexOfSubCollectionStartingAt
self debug: #testIndexOfIfAbsent
testIndexOfSubCollectionStartingAtIfAbsent
self debug: #testIndexOfIfAbsent
testInfiniteLoopBug6456
This is a non regression test against mantis bug #6456.
Some Float interval size was not consistent with do: loop.
Some Float Interval used to do: infinite loops
testInvalid
empty, impossible ranges
testIsEvaluating
testIsInterval
testLast
testLastIndexOf
self debug: #testLastIndexOf
testLastIndexOfIfAbsent
self debug: #testIndexOfIfAbsent
testMinus
testNewFrom
testNumericTypes
testOtherNewFrom
testPermutationsDo
testRangeIncludes
testReverseDo
testReverseUnevenDo
testUnevenDo
KeyedSetTest
KeyedSetTest hold sunit tests for class KeyedSet
testSelect
this is a non regression test for http://bugs.squeak.org/view.php?id=6535
LinkedListTest
A set of test cases which thoroughly test functionality of the LinkedList class.
accessCollection
anotherElementNotIn
return an element included in 'collection'
anotherElementOrAssociationIn
return an element (or an association for Dictionary ) present in 'collection'
anotherElementOrAssociationNotIn
return an element (or an association for Dictionary )not present in 'collection'
collection
collectionClass
return the class to be used to create instances of the class tested
collectionMoreThan1NoDuplicates
return a collection of size 5 without equal elements
collectionNotIncluded
return a collection for wich each element is not included in 'nonEmpty'
collectionWith1TimeSubcollection
return a collection including 'oldSubCollection' only one time
collectionWithCopyNonIdentical
return a collection that include elements for which 'copy' return a different object (this is not the case of SmallInteger)
collectionWithElement
Returns a collection that already includes what is returned by #element.
collectionWithElementsToRemove
return a collection of elements included in 'nonEmpty'
collectionWithSortableElements
return a collection only including elements that can be sorted (understanding '<' )
collectionWithoutEqualElements
return a collection without equal elements
collectionWithoutEqualsElements
return a collection not including equal elements
collectionWithoutNilElements
return a collection that doesn't includes a nil element
element
elementInForElementAccessing
return an element inculded in 'accessCollection '
elementInForIndexAccessing
return an element included in 'accessCollection'
elementNotIn
elementNotInForElementAccessing
return an element not included in 'accessCollection'
elementNotInForIndexAccessing
return an element not included in 'accessCollection'
elementNotInForOccurrences
return an element notIncluded in #collectionWithoutEqualElements
elementToAdd
return an element of type 'nonEmpy' elements'type'
empty
indexInForCollectionWithoutDuplicates
return an index between 'collectionWithoutEqualsElements' bounds
indexInNonEmpty
return an index between bounds of 'nonEmpty'
moreThan3Elements
return a collection including atLeast 3 elements
moreThan4Elements
return a collection including at leat 4 elements
n
n:
nextLink
nextLink:
nonEmpty
nonEmpty1Element
return a collection of size 1 including one element
nonEmptyMoreThan1Element
return a collection that don't includes equl elements'
nonEmptyWithoutEqualElements
return a collection without equal elements
oldSubCollection
return a subCollection included in collectionWith1TimeSubcollection .
ex : subCollection := #( 2 3 4) and collectionWith1TimeSubcollection := #(1 2 3 4 5)
otherCollection
replacementCollection
return a collection that will be used to replace 'oldSubcollection' in ' collectionWith1TimeSubcollection'
result
Returns a collection of the classes of elements in #collection
resultForCollectElementsClass
return the retsult expected by collecting the class of each element of collectionWithoutNilElements
setUp
speciesClass
subCollectionNotIn
return a collection for which at least one element is not included in 'accessCollection'
tearDown
test01add
test02addLast
test03addFirst
test04addBefore
test05addBefore
test06addAfter
test07addAfter
test08addAfter
test09addAfter
test0FixtureIndexAccessTest
test10removeFirst
test11removeLast
test12remove
test13remove
test14removeIfAbsent
test22addAll
testAddAfter
testAddAfterLast
testAddAfterLast2
LinkedListTest new testAddAfterLast2
testIdentityIncludes
test the comportement in presence of elements 'includes' but not 'identityIncludes'
testIdentityIndexOf
self debug: #testIdentityIndexOf
testIdentityIndexOfIAbsent
testIndexOf
self debug: #testIndexOf
testIndexOfIfAbsent
self debug: #testIndexOfIfAbsent
testIndexOfStartingAt
self debug: #testLastIndexOf
testIndexOfSubCollectionStartingAt
self debug: #testIndexOfIfAbsent
testIndexOfSubCollectionStartingAtIfAbsent
self debug: #testIndexOfIfAbsent
testLastIndexOf
self debug: #testLastIndexOf
testLastIndexOfIfAbsent
self debug: #testIndexOfIfAbsent
testLastIndexOfStartingAt
self debug: #testLastIndexOf
testRemoveAll
testTAdd
LiteralDictionaryTest
A LiteralDictionaryTest is xxxxxxxxx.
Instance Variables
classToBeTested
shouldInheritSelectors
testIncludesWithEqualElementFromDifferentClasses
testUnCategorizedMethods
this test doesn't pass :
MatrixTest
A MatrixTest is xxxxxxxxx.
Instance Variables
matrix1: <Object>
matrix2: <Object>
matrix3: <Object>
matrix1
- xxxxx
matrix2
- xxxxx
matrix3
- xxxxx
setUp
testAtAt
testCopy
testIncludes
testMultiply
testReplaceAll
testSwap
testTransposed
OrderedCollectionTest
These test cases demonstrate addition of items into an OrderedCollection as well as item removal.
Some of the assertions are quite complicated and use a lot of collection protocol. Such methods do not test one single method, but protocol in general.
aValue
accessCollection
anIndex
anotherElementNotIn
anotherElementOrAssociationIn
return an element (or an association for Dictionary ) present in 'collection'
anotherElementOrAssociationNotIn
return an element (or an association for Dictionary )not present in 'collection'
anotherValue
collection
collectionClass
collectionInForIncluding
collectionMoreThan1NoDuplicates
return a collection of size 5 without equal elements
collectionMoreThan5Elements
return a collection including at least 5 elements
collectionNotIncluded
collectionOfFloat
collectionWith1TimeSubcollection
return a collection including 'oldSubCollection' only one time
collectionWith2TimeSubcollection
return a collection including 'oldSubCollection' two or many time
collectionWith5Elements
return a collection of size 5 including 5 elements
collectionWithCopy
return a collection of type 'self collectionWIithoutEqualsElements clas' containing no elements equals ( with identity equality)
but 2 elements only equals with classic equality
collectionWithCopyNonIdentical
return a collection that include elements for which 'copy' return a different object (this is not the case of SmallInteger)
collectionWithElement
Returns a collection that already includes what is returned by #element.
collectionWithElementsToRemove
collectionWithEqualElements
return a collecition including atLeast two elements equal
collectionWithIdentical
return a collection of type : 'self collectionWIithoutEqualsElements class containing two elements equals ( with identity equality)
collectionWithNonIdentitySameAtEndAndBegining
return a collection with elements at end and begining equals only with classic equality (they are not the same object).
(others elements of the collection are not equal to those elements)
collectionWithSameAtEndAndBegining
return a collection with elements at end and begining equals .
(others elements of the collection are not equal to those elements)
collectionWithSortableElements
return a collection elements that can be sorte ( understanding message ' < ' or ' > ')
collectionWithoutEqualElements
return a collection without equal elements
collectionWithoutEqualsElements
return a collection not including equal elements
collectionWithoutNilElements
return a collection that doesn't includes a nil element and that doesn't includes equal elements'
element
elementInCollectionOfFloat
elementInForElementAccessing
return an element inculded in 'accessCollection '
elementInForIncludesTest
return an element included in nonEmpty
elementInForIndexAccessing
elementNotIn
elementNotInForElementAccessing
return an element not included in 'accessCollection'
elementNotInForIndexAccessing
elementNotInForOccurrences
elementToAdd
elementTwiceIn
elementTwiceInForOccurrences
return an element included exactly two time in # collectionWithEqualElements
elementsCopyNonIdenticalWithoutEqualElements
return a collection that does niot incllude equal elements ( classic equality )
empty
emptyButAllocatedWith20
expectedSizeAfterReject
firstCollection
return a collection that will be the first part of the concatenation
firstIndex
return an index between 'nonEmpty' bounds that is < to 'second index'
floatCollectionWithSameAtEndAndBegining
return a collection with elements at end and begining equals only with classic equality (they are not the same object).
(others elements of the collection are not equal to those elements)
indexArray
indexInForCollectionWithoutDuplicates
return an index between 'collectionWithoutEqualsElements' bounds
indexInNonEmpty
return an index between bounds of 'nonEmpty'
integerCollection
return a collection only including SmallInteger elements
integerCollectionWithoutEqualElements
return a collection of integer without equal elements
moreThan3Elements
return a collection including atLeast 3 elements
moreThan4Elements
return a collection including at leat 4 elements
newElement
return an element that will be put in the collection in place of another
nonEmpty
nonEmpty1Element
return a collection of size 1 including one element
nonEmptyMoreThan1Element
return a collection with more than one element
nonEmptyWithoutEqualElements
return a collection without equal elements
oldSubCollection
return a subCollection included in collectionWith1TimeSubcollection .
ex : subCollection := #( 2 3 4) and collectionWith1TimeSubcollection := #(1 2 3 4 5)
otherCollection
replacementCollection
return a collection that will be used to replace 'oldSubcollection' in ' collectionWith1TimeSubcollection'
replacementCollectionSameSize
return a collection of size (secondIndex - firstIndex + 1)
result
resultForCollectElementsClass
return the retsult expected by collecting the class of each element of collectionWithoutNilElements
secondCollection
return a collection that will be the second part of the concatenation
secondIndex
return an index between 'nonEmpty' bounds that is > to 'second index'
selectorToAccessValuePutIn
return the selector of the method that should be invoked to access an element
setUp
sizeCollection
Answers a collection not empty
speciesClass
subCollectionNotIn
test0FixtureTConvertAsSetForMultiplinessTest
a collection ofFloat with equal elements:
testAdd
testAddAfter
testAddAfterIndex
self run: #testAddAfterIndex
testAddAll
Allows one to add each element of an orderedCollection at the end of another
orderedCollection
testAddAllFirst
Allows one to add each element of an orderedCollection at the beginning of another
orderedCollection
testAddAllFirstUnlessAlreadyPresent
Allows one to add each element of an orderedCollection at the beginning of
another orderedCollection preserving the order but no duplicate element
testAddAllLast
Allows one to add each element of an orderedCollection at the beginning of another
orderedCollection
testAddBefore
testAddBeforeAndRemove
testAddBeforeIndex
self run: #testAddBeforeIndex
testAddDuplicateItem1
testAddFirst
testAddItem1
testAddItem2
testAddLast
testAt
testAtIfAbsentPut
Allows one to add an element at an index if no element exist at this index
testAtPut
Allows one to replace an element but not at an off range index
testCapacityFromAsOrderedCollection
Allows one to check the current capacity of an Ordered collection
testCollect
Allows one to collect some element of a collection into another collection
testCollectFromTo
Allows one to collect some element of a collection into another collection between a first index and an end index for the collect
testCopyEmptyOld
Allows one to create a copy of the receiver that contains no elements
testCopyEmptyWith
self debug: #testCopyWith
testCopyEmptyWithout
self debug: #testCopyEmptyWithout
testCopyEmptyWithoutAll
self debug: #testCopyEmptyWithoutAll
testCopyFromTo
Allows one to create a copy of the receiver that contains elements from position start to end
testCopyNonEmptyWith
self debug: #testCopyNonEmptyWith
testCopyNonEmptyWithoutAll
self debug: #testCopyNonEmptyWithoutAll
testCopyNonEmptyWithoutAllNotIncluded
testCopyNonEmptyWithoutNotIncluded
self debug: #testCopyNonEmptyWithoutNotIncluded
testCopyReplaceFromToWith
Allows one to create a copy from the receiver which elements between start and end of the receiver being replace by element of the collection after with:
testCopyWith
Allows one to create a copy of the receiver that contains the new element at the end
testIdentityIncludes
test the comportement in presence of elements 'includes' but not 'identityIncludes'
testIdentityIndexOf
self debug: #testIdentityIndexOf
testIdentityIndexOfIAbsent
testIncludesAllOfNoneThere
self debug: #testIncludesAllOfNoneThere'
testIncludesAnyOfNoneThere
self debug: #testIncludesAnyOfNoneThere'
testIncludesElementIsNotThere
self debug: #testIncludesElementIsNotThere
testIncludesSubstringAnywhere
self debug: #testIncludesSubstringAnywher'
testIndexOf
self debug: #testIndexOf
testIndexOfIfAbsent
self debug: #testIndexOfIfAbsent
testIndexOfStartingAt
self debug: #testLastIndexOf
testIndexOfSubCollectionStartingAt
self debug: #testIndexOfIfAbsent
testIndexOfSubCollectionStartingAtIfAbsent
self debug: #testIndexOfIfAbsent
testIndexOfWithDuplicates
testLastIndexOf
self debug: #testLastIndexOf
testLastIndexOfIfAbsent
self debug: #testIndexOfIfAbsent
testLastIndexOfStartingAt
self debug: #testLastIndexOf
testRemoveAll
Allows one to remove all elements of a collection
testRemoveAllSuchThat
testRemoveAt
Allows one to remove an element from a collection at an index
testRemoveFirst
Allows one to remove n element of a collection at the first
testRemoveIfAbsent
Allows one to remove an element from a collection and to copy it in another collection.
testRemoveLast
Allows one to remove n element of a collection at the end
testReversed
testWithCollect
Allows one to collect some element of two collections into another collection with element corresponding to the condition in the blocks
withEqualElements
return a collection of float including equal elements (classic equality)
PluggableDictionaryTest
A PluggableDictionaryTest is xxxxxxxxx.
Instance Variables
classToBeTested
shouldInheritSelectors
PluggableSetTest
A PluggableSetTest is xxxxxxxxx.
Instance Variables
classToBeTested
ReadStreamTest
I am an SUnit test for ReadStream.
I have no test fixtures.
emptyStream
streamOn:upToAll:
streamOn:upToAll:upToAll:
streamOnArray
streamOnString
testBack
testBackOnPosition1
Test the new implementation of the method back.
testIsEmpty
testOldBack
Test the old behavior of the method back. The method #oldBack is a misconception about what a stream is. A stream contains a pointer *between* elements with past and future elements. The method #oldBack considers that the pointer is *on* an element. (Damien Cassou - 1 August 2007)
testOldBackOnPosition1
Test the old behavior of the method back. The method #oldBack is a misconception about what a stream is. A stream contains a pointer *between* elements with past and future elements. The method #oldBack considers that the pointer is *on* an element. (Damien Cassou - 1 August 2007)
testOldPeekBack
Test the old behavior of the method peekBack. The method #oldBack is a misconception about what a stream is. A stream contains a pointer *between* elements with past and future elements. The method #oldBack considers that the pointer is *on* an element. (Damien Cassou - 1 August 2007)
testPeekBack
Test the new implementation of the method peekBack due to changing #back.
testPositionOfSubCollection
testUpToAll
ReadWriteStreamTest
This is the unit test for the class ReadWriteStream.
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
testConstructionUsingWith
Use the with: constructor.
testIsEmpty
testNew
RunArrayTest
A RunArrayTest is xxxxxxxxx.
Instance Variables
testANewRunArrayIsEmpty
testAt
self debug: #testAt
testAtPut
self debug: #testAtPut
testAtPut2
self debug: #testAtPut2
testFirst
self debug: #testFirst
testLast
self debug: #testLast
testNew
self debug: #testNew
testNewFrom
self debug: #testNewFrom
testNewWithAll
self debug: #testNewWithAll
testNewWithSize
testRunLengthAt
self debug: #testRunLengthAt
testRunsValues
self debug: #testRunsValues
testScanFromANSICompatibility
self run: #testScanFromANSICompatibility
testWithStartStopAndValueDo
self debug: #testWithStartStopAndValueDo
SetTest
This is the unit test for the class Set. 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
anotherElementNotIn
anotherElementOrAssociationIn
return an element (or an association for Dictionary ) present in 'collection'
anotherElementOrAssociationNotIn
return an element (or an association for Dictionary )not present in 'collection'
classToBeTested
collection
collectionClass
collectionInForIncluding
collectionMoreThan5Elements
return a collection including at least 5 elements
collectionNotIncluded
collectionOfFloat
collectionWithCopyNonIdentical
return a collection that include elements for which 'copy' return a different object (this is not the case of SmallInteger)
collectionWithElement
collectionWithElementsToRemove
collectionWithSortableElements
return a collection elements that can be sorte ( understanding message ' < ' or ' > ')
collectionWithoutElement
return a collection that does not include 'element'
collectionWithoutEqualElements
return a collection without equal elements
collectionWithoutNilElements
return a collection that doesn't includes a nil element and that doesn't includes equal elements'
element
elementInForIncludesTest
return an element included in nonEmpty
elementNotIn
elementNotInForOccurrences
elementToAdd
empty
emptyButAllocatedWith20
expectedSizeAfterReject
firstCollection
return a collection that will be the first part of the concatenation
integerCollectionWithoutEqualElements
return a collection of integer without equal elements
nonEmpty
nonEmpty1Element
return a collection of size 1 including one element
nonEmptyWithoutEqualElements
return a collection without equal elements
otherCollection
Returns a collection that does not include what is returned by #element.
result
resultForCollectElementsClass
return the retsult expected by collecting the class of each element of collectionWithoutNilElements
secondCollection
return a collection that will be the second part of the concatenation
selectedNumber
setUp
sizeCollection
Answers a collection not empty
speciesClass
test0FixtureAddForUniquenessTest
testAdd
testAddEmptyGrows
self debug: #testAddEmptyGrows
testAddNewElementIncrementsSize
testAddNonEmptyGrowsWhenNewElement
self debug: #testAddNonEmptyGrowsWhenNewElement
testAddWithOccurences
testAsSet
could be moved in Array or Collection
testAtRandom
testCollect2
testCopy
testCopyEmptyWith
self debug: #testCopyWith
testCopyEmptyWithout
self debug: #testCopyEmptyWithout
testCopyEmptyWithoutAll
self debug: #testCopyEmptyWithoutAll
testCopyNonEmptyWith
self debug: #testCopyNonEmptyWith
testCopyNonEmptyWithoutAll
self debug: #testCopyNonEmptyWithoutAll
testCopyNonEmptyWithoutAllNotIncluded
testCopyNonEmptyWithoutNotIncluded
self debug: #testCopyNonEmptyWithoutNotIncluded
testCopyWithout
testDo2
dc: Bad test, it assumes that a new instance of #speciesClass allows addition with #add:. This is not the case of Interval for which species is Array.
testDoWithoutNoDuplicates
self debug: #testDoWithoutNoDuplicates
testGrow
testIdentityIncludes
test the comportement in presence of elements 'includes' but not 'identityIncludes'
testIllegal
testIncludes
testIncludesAllOfNoneThere
self debug: #testIncludesAllOfNoneThere'
testIncludesAnyOfNoneThere
self debug: #testIncludesAnyOfNoneThere'
testIncludesElementIsNotThere
self debug: #testIncludesElementIsNotThere
testIncludesSubstringAnywhere
self debug: #testIncludesSubstringAnywher'
testIntersection
testLike
testOccurrences
testRemove
testRemoveAll
Allows one to remove all elements of a collection
testRemoveIfAbsent
testSize2
testTAddIfNotPresentWithNewElement
testUnion
SharedQueue2Test
A SharedQueue2Test is xxxxxxxxx.
Instance Variables
testBasics
testContention1
here is a test case that breaks the standard SharedQueue from Squeak 3.8
testNextOrNilSuchThat
SmallDictionaryTest
A SmallDictionaryTest is xxxxxxxxx.
Instance Variables
classToBeTested
shouldInheritSelectors
testStoreOn
self debug: #testStoreOn
SmallIdentityDictionaryTest
A SmallIdentityDictionaryTest is xxxxxxxxx.
Instance Variables
classToBeTested
shouldInheritSelectors
SortedCollectionTest
A SortedCollectionTest is xxxxxxxxx.
Instance Variables
accessCollection: <Object>
collection: <Object>
collectionIncluded: <Object>
collectionNotIncluded: <Object>
collectionOfFloat: <Object>
collectionOfFloatWithDuplicate: <Object>
collectionWithoutNil: <Object>
duplicateFloat: <Object>
elementExistsTwice: <Object>
elementNoteIn: <Object>
empty: <Object>
floatCollectionSameEndAndBegining: <Object>
nonEmpty: <Object>
nonEmpty1Element: <Object>
nonEmpty5Elements: <Object>
oldSubcollection: <Object>
result: <Object>
withoutEqualElements: <Object>
accessCollection
- xxxxx
collection
- xxxxx
collectionIncluded
- xxxxx
collectionNotIncluded
- xxxxx
collectionOfFloat
- xxxxx
collectionOfFloatWithDuplicate
- xxxxx
collectionWithoutNil
- xxxxx
duplicateFloat
- xxxxx
elementExistsTwice
- xxxxx
elementNoteIn
- xxxxx
empty
- xxxxx
floatCollectionSameEndAndBegining
- xxxxx
nonEmpty
- xxxxx
nonEmpty1Element
- xxxxx
nonEmpty5Elements
- xxxxx
oldSubcollection
- xxxxx
result
- xxxxx
withoutEqualElements
- xxxxx
accessCollection
return a collection of size 5
anotherElementNotIn
return an element different of 'elementNotIn' not included in 'nonEmpty'
anotherElementOrAssociationIn
return an element (or an association for Dictionary ) present in 'collection'
anotherElementOrAssociationNotIn
return an element (or an association for Dictionary )not present in 'collection'
collection
collectionClass
return the class to be used to create instances of the class tested
collectionMoreThan1NoDuplicates
return a collection of size 5 without equal elements
collectionMoreThan5Elements
return a collection including at least 5 elements
collectionNotIncluded
return a collection for wich each element is not included in 'nonEmpty'
collectionOfFloat
return a collection only includiing Float elements
collectionOfSize5
return a collection of size 5
collectionWith1TimeSubcollection
return a collection including 'oldSubCollection' only one time
collectionWith2TimeSubcollection
return a collection including 'oldSubCollection' two or many time
collectionWith5Elements
return a collection of size 5 including 5 elements
collectionWithCopy
return a collection of type 'self collectionWIithoutEqualsElements clas' containing no elements equals ( with identity equality)
but 2 elements only equals with classic equality
collectionWithCopyNonIdentical
return a collection that include elements for which 'copy' return a different object (this is not the case of SmallInteger)
collectionWithElement
Returns a collection that already includes what is returned by #element.
collectionWithElementsToRemove
return a collection of elements included in 'nonEmpty'
collectionWithEqualElements
return a collecition including atLeast two elements equal
collectionWithIdentical
return a collection of type : 'self collectionWIithoutEqualsElements class containing two elements equals ( with identity equality)
collectionWithNonIdentitySameAtEndAndBegining
return a collection with elements at end and begining equals only with classic equality (they are not the same object).
(others elements of the collection are not equal to those elements)
collectionWithSameAtEndAndBegining
return a collection with elements at end and begining equals .
(others elements of the collection are not equal to those elements)
collectionWithSortableElements
return a collection elements that can be sorte ( understanding message ' < ' or ' > ')
collectionWithoutEqualElements
return a collection without equal elements
collectionWithoutEqualsElements
return a collection not including equal elements
collectionWithoutNilElements
return a collection that doesn't includes a nil element and that doesn't includes equal elements'
element
Returns an object that can be added to the collection returned by #collection.
elementInCollectionOfFloat
return an element included in 'collectionOfFloat'
elementInForElementAccessing
return an element inculded in 'accessCollection '
elementInForIncludesTest
return an element included in nonEmpty
elementInForIndexAccessing
return an element included in 'accessCollection'
elementNotIn
return an element not included in 'nonEmpty'
elementNotInForElementAccessing
return an element not included in 'accessCollection'
elementNotInForIndexAccessing
return an element not included in 'accessCollection'
elementNotInForOccurrences
elementToAdd
return an element of type 'nonEmpy' elements'type'
elementTwiceInForOccurrences
return an element included exactly two time in # collectionWithEqualElements
elementsCopyNonIdenticalWithoutEqualElements
return a collection that does niot incllude equal elements ( classic equality )
empty
expectedSizeAfterReject
floatCollectionWithSameAtEndAndBegining
return a collection with elements at end and begining equals only with classic equality (they are not the same object).
(others elements of the collection are not equal to those elements)
indexInForCollectionWithoutDuplicates
return an index between 'collectionWithoutEqualsElements' bounds
indexInNonEmpty
return an index between bounds of 'nonEmpty'
integerCollection
return a collection only including SmallInteger elements
integerCollectionWithoutEqualElements
return a collection of integer without equal elements
moreThan3Elements
return a collection including atLeast 3 elements
moreThan4Elements
return a collection including at leat 4 elements
nonEmpty
nonEmpty1Element
return a collection of size 1 including one element
nonEmptyMoreThan1Element
return a collection of integer with more than one element
nonEmptyWithoutEqualElements
return a collection without equal elements
oldSubCollection
return a subCollection included in collectionWith1TimeSubcollection .
ex : subCollection := #( 2 3 4) and collectionWith1TimeSubcollection := #(1 2 3 4 5)
otherCollection
Returns a collection that does not include what is returned by #element.
replacementCollection
return a collection that will be used to replace 'oldSubcollection' in ' collectionWith1TimeSubcollection'
result
resultForCollectElementsClass
return the retsult expected by collecting the class of each element of collectionWithoutNilElements
setUp
sizeCollection
Answers a collection not empty
speciesClass
subCollectionNotIn
return a collection for which at least one element is not included in 'accessCollection'
test0FixtureTConvertAsSetForMultiplinessTest
a collection ofFloat with equal elements:
testAdd
self run: #testAdd
testAddAll
self run: #testAddAll
testAddAll2
self run: #testAddAll2
testCollect
self run: #testCollect
testCopy
self run: #testCopy
testCreation
self run: #testCreation
testDo2
dc: Bad test, it assumes that a new instance of #speciesClass allows addition with #add:. This is not the case of Interval for which species is Array.
testEquals
self run: #testEquals
testIdentityIncludes
test the comportement in presence of elements 'includes' but not 'identityIncludes'
testIdentityIndexOf
self debug: #testIdentityIndexOf
testIdentityIndexOfIAbsent
testIndexOf
self debug: #testIndexOf
testIndexOfIfAbsent
self debug: #testIndexOfIfAbsent
testIndexOfStartingAt
self debug: #testLastIndexOf
testIndexOfSubCollectionStartingAt
self debug: #testIndexOfIfAbsent
testIndexOfSubCollectionStartingAtIfAbsent
self debug: #testIndexOfIfAbsent
testLastIndexOf
self debug: #testLastIndexOf
testLastIndexOfIfAbsent
self debug: #testIndexOfIfAbsent
testLastIndexOfStartingAt
self debug: #testLastIndexOf
testMedian
self run: #testMedian
testRemoveAll
Allows one to remove all elements of a collection
testSortBlock
self run: #testSortBlock
testSpeciesLooseSortBlock
This is a non regression test for http://bugs.squeak.org/view.php?id=6535
withEqualElements
return a collection of float including equal elements (classic equality)
SplitJoinTest
"Evaluate me to view the SplitJoin documentation:"
self showDocumentation
"CHANGES LOG:
- merged implementations by Keith Hodges (Join) and Damiena Pollet
and Oscar Nierstrasz (RubyShards) into SplitJoin package
- moved all extension methods to *splitjoin method category
- merged all tests into SplitJoinTest
- fixed protocol in SequenceableCollection to splitOn: and joinUsing:
and split: join: for splitters and joiners
- added Object>>joinTo: aStream and SequenceableCollection>>joinTo: aStream
to support joining of either sequences or sequences of sequences
- prepared some documentation
- added systematic tests for all split/join cases
- added Object>>join:
- prepared split/join tests for all 16 cases
- prepares split+join tests for 4 standard cases
- reviewed/merged old tests
- changed splitjoin tests to use different joiner
- added separate test for split+join=id cases
- adapted documentation -- join result type is type of joiner or array or string
- fix split tests to check result asOrderedCollection
- added split tests for OrderedCollection and SortedCollection
- new join: method for OrderedCollection and SortedCollection
(uses appendTo: in Object and SequenceableCollection)
- reviewed all split: implementations -- removed unnecessary helper methods
- check boundary conditions -- split on empty sequence ...
"
assert:equals:
documentation
packageNamesUnderTest
showDocumentation
testJoinArrayUsingArray
testJoinArrayUsingChar
testJoinArrayUsingObject
testJoinArrayUsingOrderedCollection
testJoinArrayUsingSortedCollection
testJoinArrayUsingString
testJoinStringUsingChar
testJoinStringUsingString
testJoinUsingLastOnArray
testJoinUsingLastOnArrayOfStrings
testSplitArrayOnBlock
testSplitArrayOnElement
testSplitArrayOnSequence
testSplitJoinBoundaryCases
Empty splitter, joiner or sequence.
testSplitJoinIdentity
testSplitJoinOnElement
testSplitJoinOnSequence
testSplitJoinStringOnChar
testSplitJoinStringOnString
testSplitOrderedCollectionOnElement
testSplitOrderedCollectionOnOrderedCollection
testSplitSortedCollectionOnElement
testSplitSortedCollectionOnSortedCollection
testSplitStringOnBlock
testSplitStringOnChar
testSplitStringOnRegex
testSplitStringOnSubstring
StackTest
A StackTest is xxxxxxxxx.
Instance Variables
empty: <Object>
nonEmpty: <Object>
empty
- xxxxx
nonEmpty
- xxxxx
empty
nonEmpty
setUp
testEmptyError
testPop
testPush
testSize
testTop
StringTest
This is the unit test for the class String. 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
aValue
return a value to put into nonEmpty
anIndex
return an index in nonEmpty bounds
anotherElementNotIn
anotherElementOrAssociationIn
return an element (or an association for Dictionary ) present in 'collection'
anotherElementOrAssociationNotIn
return an element (or an association for Dictionary )not present in 'collection'
anotherValue
return a value ( not eual to 'aValue' ) to put into nonEmpty
collection
collectionClass
collectionMoreThan1NoDuplicates
return a collection of size > 1 without equal elements
collectionMoreThan5Elements
return a collection including at least 5 elements
collectionNotIncluded
return a collection for wich each element is not included in 'nonEmpty'
collectionWith1TimeSubcollection
return a collection including 'oldSubCollection' only one time
collectionWith2TimeSubcollection
return a collection including 'oldSubCollection' two or many time
collectionWithElement
Returns a collection that already includes what is returned by #element.
collectionWithElementsToRemove
return a collection of elements included in 'nonEmpty'
collectionWithEqualElements
return a collecition including atLeast two elements equal
collectionWithSameAtEndAndBegining
return a collection with elements at end and begining equals .
(others elements of the collection are not equal to those elements)
collectionWithSortableElements
return a collection only including elements that can be sorted (understanding '<' )
collectionWithoutEqualElements
return a collection without equal elements
collectionWithoutEqualsElements
return a collection not including equal elements
collectionWithoutNilElements
return a collection that doesn't includes a nil element and that doesn't includes equal elements'
element
Returns an object that can be added to the collection returned by #collection.
elementInForElementAccessing
return an element inculded in 'moreThan4Elements'
elementInForIncludesTest
return an element included in nonEmpty
elementInForIndexAccessing
return an element included in 'accessCollection'
elementNotIn
return an element not included in 'nonEmpty'
elementNotInForElementAccessing
return an element not included in 'moreThan4Elements'
elementNotInForIndexAccessing
return an element not included in 'accessCollection'
elementNotInForOccurrences
elementToAdd
elementTwiceInForOccurrences
return an element included exactly two time in # collectionWithEqualElements
empty
findFirstInString:fromString:
firstCollection
return a collection that will be the first part of the concatenation
firstIndex
return an index between 'nonEmpty' bounds that is < to 'second index'
indexArray
return a Collection including indexes between bounds of 'nonEmpty'
indexInForCollectionWithoutDuplicates
return an index between 'collectionWithoutEqualsElements' bounds
indexInNonEmpty
return an index between bounds of 'nonEmpty'
integerCollectionWithoutEqualElements
return a collection of integer without equal elements
moreThan3Elements
return a collection including atLeast 3 elements
moreThan4Elements
return a collection including at leat 4 elements
newElement
return an element that will be put in the collection in place of another
nonEmpty
nonEmpty1Element
return a collection of size 1 including one element
nonEmptyMoreThan1Element
return a collection that don't includes equl elements'
oldSubCollection
return a subCollection included in collectionWith1TimeSubcollection .
ex : subCollection := #( 2 3 4) and collectionWith1TimeSubcollection := #(1 2 3 4 5)
otherCollection
Returns a collection that does not include what is returned by #element.
replacementCollection
return a collection that will be used to replace 'oldSubcollection' in ' collectionWith1TimeSubcollection'
replacementCollectionSameSize
return a collection of size (secondIndex - firstIndex + 1)
secondCollection
return a collection that will be the second part of the concatenation
secondIndex
return an index between 'nonEmpty' bounds that is > to 'second index'
setUp
sizeCollection
Answers a collection whose #size is 4
sortedInAscendingOrderCollection
return a collection sorted in an acsending order
subCollectionNotIn
return a collection for which at least one element is not included in 'moreThan4Elements'
test0CopyTest
testAsInteger
testAsSmalltalkComment
testAt
testCapitalized
testComparing
testCopyEmptyWith
self debug: #testCopyWith
testCopyEmptyWithout
self debug: #testCopyEmptyWithout
testCopyEmptyWithoutAll
self debug: #testCopyEmptyWithoutAll
testCopyNonEmptyWith
self debug: #testCopyNonEmptyWith
testCopyNonEmptyWithoutAll
self debug: #testCopyNonEmptyWithoutAll
testCopyNonEmptyWithoutAllNotIncluded
testCopyNonEmptyWithoutNotIncluded
self debug: #testCopyNonEmptyWithoutNotIncluded
testEncodeForHTTP
testEquality
testFindFirstInString
These tests are more specific than thsoe in testIndexOf.
testFindLastOccurenceOfStringStartingAt
testFindTokensEscapedBy01
testFindTokensEscapedBy02
testFindTokensEscapedBy03
testFindTokensEscapedBy04
testFindTokensEscapedBy05
testFindTokensEscapedBy06
testFindTokensEscapedBy07
testFindTokensEscapedBy08
testFindTokensEscapedBy09
testFindTokensEscapedBy10
testFindTokensEscapedBy11
testFindTokensEscapedBy12
testFindTokensEscapedBy13
testFindTokensEscapedBy14
testFindTokensEscapedBy15
testFindTokensEscapedBy16
testFindTokensEscapedBy21
testFindTokensEscapedBy22
testFindTokensEscapedBy23
testFindTokensEscapedBy24
testFindTokensEscapedBy25
testFindTokensEscapedBy26
testIncludesAllOfNoneThere
self debug: #testIncludesAllOfNoneThere'
testIncludesAnyOfNoneThere
self debug: #testIncludesAnyOfNoneThere'
testIncludesElementIsNotThere
self debug: #testIncludesElementIsNotThere
testIncludesSubstringAnywhere
self debug: #testIncludesSubstringAnywher'
testIndexOf
test for http://bugs.impara.de/view.php?id=3574
testNumArgs
This is about http://code.google.com/p/pharo/issues/detail?id=237
testPercentEncodingJa
Make Japanese String from unicode. see http://www.unicode.org/charts/PDF/U3040.pdf
testSpace
self debug: #testSpace
testUnescapePercents
testUnescapePercentsWithTextEncoding
testUpTo
self debug: #testUpTo
testWithFirstCharacterDownshifted
testZipped
unsortedCollection
withEqualElements
return a collection including equal elements (classic equality)
SymbolTest
This is the unit test for the class Symbol. 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
anotherElementNotIn
anotherElementOrAssociationIn
return an element (or an association for Dictionary ) present in 'collection'
anotherElementOrAssociationNotIn
return an element (or an association for Dictionary )not present in 'collection'
collection
collectionClass
collectionMoreThan1NoDuplicates
return a collection of size > 1 without equal elements
collectionNotIncluded
return a collection for wich each element is not included in 'nonEmpty'
collectionWith1TimeSubcollection
return a collection including 'oldSubCollection' only one time
collectionWith2TimeSubcollection
return a collection including 'oldSubCollection' two or many time
collectionWithElementsToRemove
return a collection of elements included in 'nonEmpty'
collectionWithEqualElements
return a collecition including atLeast two elements equal
collectionWithSameAtEndAndBegining
return a collection with elements at end and begining equals .
(others elements of the collection are not equal to those elements)
collectionWithSortableElements
return a collection only including elements that can be sorted (understanding '<' )
collectionWithoutEqualElements
return a collection without equal elements
collectionWithoutEqualsElements
return a collection not including equal elements
collectionWithoutNilElements
return a collection that doesn't includes a nil element and that doesn't includes equal elements'
elementInForElementAccessing
return an element inculded in 'moreThan4Elements'
elementInForIndexAccessing
return an element included in 'collectionMoreThan1NoDuplicates'
elementNotIn
return an element not included in 'nonEmpty'
elementNotInForElementAccessing
return an element not included in 'moreThan4Elements'
elementNotInForIndexAccessing
return an element not included in 'collectionMoreThan1NoDuplicates'
elementNotInForOccurrences
elementToAdd
elementTwiceInForOccurrences
return an element included exactly two time in # collectionWithEqualElements
empty
firstCollection
return a collection that will be the first part of the concatenation
indexInForCollectionWithoutDuplicates
return an index between 'collectionWithoutEqualsElements' bounds
indexInNonEmpty
return an index between bounds of 'nonEmpty'
moreThan3Elements
return a collection including atLeast 3 elements
moreThan4Elements
return a collection including at leat 4 elements
nonEmpty
nonEmpty1Element
return a collection of size 1 including one element
nonEmptyMoreThan1Element
return a collection that don't includes equal elements'
oldSubCollection
return a subCollection included in collectionWith1TimeSubcollection .
ex : subCollection := #( 2 3 4) and collectionWith1TimeSubcollection := #(1 2 3 4 5)
replacementCollection
return a collection that will be used to replace 'oldSubcollection' in ' collectionWith1TimeSubcollection'
secondCollection
return a collection that will be the second part of the concatenation
setUp
sizeCollection
Answers a collection whose #size is 4
subCollectionNotIn
return a collection for which at least one element is not included in 'moreThan4Elements'
testAsMutator
testCapitalized
testCopyEmptyWith
self debug: #testCopyWith
testCopyEmptyWithout
self debug: #testCopyEmptyWithout
testCopyEmptyWithoutAll
self debug: #testCopyEmptyWithoutAll
testCopyNonEmptyWith
self debug: #testCopyNonEmptyWith
testCopyNonEmptyWithoutAll
self debug: #testCopyNonEmptyWithoutAll
testCopyNonEmptyWithoutAllNotIncluded
testCopyNonEmptyWithoutNotIncluded
self debug: #testCopyNonEmptyWithoutNotIncluded
testNumArgs2
TODO: need to be extended to support shrinking and for selectors like #+
testWithFirstCharacterDownshifted
withEqualElements
return a collection including equal elements (classic equality)
TextAlignmentTest
A TextAlignmentTest is xxxxxxxxx.
Instance Variables
setUp
subclasses will add their prototypes into this collection
TextAndTextStreamTest
At May 09, 2003 Tim Olson sent a bug report to the Squeak developers list that inspired me to examine the protocol of TextStream in greater detail. (The bug that Tim reported was present in Squeak 3.4, it is shown in testExample1.) In a discussion that followed, Daniel Vainsencher proposed that we should have tests for Text and TextStreams. This class is an attempt to implement that proposal. For Squeak 3.4, some of the test examples fail.
example1:
example2
replacementAtStartExample3
replacementExample3
for a Text t,
the following assertion should always hold:
t string size = t run size
This test examines the preservation of this assertion for in-place replacement
Here, the replacement text is shorteer than the text that is shall replace.
testAddStringToTextStream
It is possible to add a string into a TextStream.
This test verifies that the created text has text attributes for all its characters.
testExampleText1
self run: #testExampleText1
testExampleText2
a Text looses its attributes when it is reversed
testRunArrayAdjacentMerge
this demonstrates that adjancent runs with equal attributes are merged.
testRunArrayInvariant
this verifies that the fundamental invariant of a RunArray is always satisfied.
testRunArrayReversal
this tests the reversal of a RunArray
testRunArrayRunsAreNotMerged
this demonstrates that different runs are not merged
testRunArrayRunsSize
this demonstrates that the size of a run array is the sum of the sizes of its runs.
testTextEmphasisRangeDetection1
this tests the detection of the range of a text attribute.
testTextEmphasisRangeDetection2
this tests the detection of the range of a text attribute.
Here the searched attribute spans three runs. The objective of the test is whether the entire range is always found.
testTextEmphasisRangeDetection3
this tests the detection of the range of a text attribute.
Here the searched attribute spans three runs. The the range to be detected begins at text position 1. The objective of the test is whether the entire range is always found.
testTextEmphasisRangeDetection4
this tests the detection of the range of a text attribute.
Here the searched attribute spans three runs. The the range to be detected extends to the end of the text . The objective of the test is whether the
entire range is always found.
testTextReplacement1
for a Text t,
the following assertion should always hold:
t string size = t run size
This test examines the preservation of this assertion for in-place replacement
testTextReplacement2
for a Text t,
the following assertion should always hold:
t string size = t run size
This test examines the preservation of this assertion for in-place replacement.
Here, the replacement text has trailing characters.
testTextReplacement3
for a Text t,
the following assertion should always hold:
t string size = t run size
This test examines the preservation of this assertion for in-place replacement
Here, the replacement text is shorteer than the text that is shall replace.
testTextReplacementAtStartPos1
for a Text t,
the following assertion should always hold:
t string size = t run size
This test examines the preservation of this assertion for in-place replacement
testTextReplacementAtStartPos2
for a Text t,
the following assertion should always hold:
t string size = t run size
This test examines the preservation of this assertion for in-place replacement
testTextReplacementAtStartPos3
for a Text t,
the following assertion should always hold:
t string size = t run size
This test examines the preservation of this assertion for in-place replacement
Here, the replacement text is shorteer than the text that is shall replace.
testTextStreamAdjacentRunsWithIdentitcalAttributes
This test verifies that adjacent runs with identical attributes are coalesced.
TextEmphasisTest
A TextEmphasisTest is xxxxxxxxx.
Instance Variables
setUp
subclasses will add their prototypes into this collection
testAppendString
tests the Text>>prepend: method when appending a String
testAppendText
tests the Text>>prepend: method when appending a Text
testPrependString
tests the Text>>prepend: method when prepending a String
testPrependText
tests the Text>>prepend: method when prepending Text
TextFontChangeTest
A TextFontChangeTest is xxxxxxxxx.
Instance Variables
setUp
create the prototypes for testing
testEquality
Check that different instances of the same TextFontChange are equal
testHash
test that different instances of the same TextFontChange hash to the
same value
TextFontReferenceTest
A TextFontReferenceTest is xxxxxxxxx.
Instance Variables
setUp
subclasses will add their prototypes into this collection
TextKernTest
A TextKernTest is xxxxxxxxx.
Instance Variables
setUp
subclasses will add their prototypes into this collection
TextLineEndingsTest
This is a test case for Text>>withSqueakLineEndings and String>>withSqueakLineEndings.
The main problem we've seen with the Text version is that it doesn't preserve formatting correctly.
testDecoratedTextConversionCrLF
testDecoratedTextConversionJustLF
testDecoratedTextConversionNoLF
testSimpleTextConversionCrLF
testSimpleTextConversionJustCR
testSimpleTextConversionJustLF
testStringConversionCrLF
testStringConversionJustLF
testStringConversionNoLF
TRemoveByIndexTest
A TRemoveByIndexTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionWith5Elements
return a collection of size 5 including 5 elements
copy
defaultEnvironment
empty
return an empty collection
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureRemoveByIndexTest
testRemoveAt
testRemoveAtNotPresent
testRemoveFirst
testRemoveFirstNElements
testRemoveFirstNElementsNotPresent
testRemoveFirstNotPresent
testRemoveLast
testRemoveLastNElements
testRemoveLastNElementsNElements
testRemoveLastNotPresent
variablesAndOffsetsDo:
TRemoveForMultiplenessTest
A TRemoveForMultiplenessTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
elementTwiceIn
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
testRemoveElementThatExistsTwice
self debug: #testRemoveElementThatDoesExistsTwice
variablesAndOffsetsDo:
TRemoveTest
A TRemoveTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
elementNotIn
return an element not included in nonEmptyWithoutEqualElements
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmptyWithoutEqualElements
return a collection without equal elements
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureTRemoveTest
testRemoveAll
self debug: #testRemoveElementThatExists
testRemoveAllError
self debug: #testRemoveElementThatExists
testRemoveAllFoundIn
self debug: #testRemoveElementThatExists
testRemoveAllSuchThat
self debug: #testRemoveElementThatExists
testRemoveElementFromEmpty
self debug: #testRemoveElementFromEmpty
testRemoveElementReallyRemovesElement
self debug: #testRemoveElementReallyRemovesElement
testRemoveElementThatExists
self debug: #testRemoveElementThatExists
testRemoveIfAbsent
self debug: #testRemoveElementThatExists
variablesAndOffsetsDo:
TReplacementSequencedTest
A TReplacementSequencedTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
elementInForReplacement
return an element included in 'nonEmpty'
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
firstIndex
return an index between 'nonEmpty' bounds that is < to 'second index'
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newElement
return an element that will be put in the collection in place of another
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
replacementCollection
return a collection that will be put into 'nonEmpty'
replacementCollectionSameSize
return a collection of size (secondIndex - firstIndex + 1)
requirements
secondIndex
return an index between 'nonEmpty' bounds that is > to 'first index'
setName:andRegisterInCategory:environment:
testOFixtureReplacementSequencedTest
testReplaceAllWith
testReplaceFromToWith
testReplaceFromToWithStartingAt
variablesAndOffsetsDo:
TSequencedConcatenationTest
A TSequencedConcatenationTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
firstCollection
return a collection that will be the first part of the concatenation
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
secondCollection
return a collection that will be the second part of the concatenation
setName:andRegisterInCategory:environment:
test0FixtureSequencedConcatenationTest
testConcatenation
testConcatenationWithEmpty
variablesAndOffsetsDo:
TSequencedElementAccessTest
A TSequencedElementAccessTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
elementInForElementAccessing
return an element inculded in 'moreThan4Elements'
elementNotInForElementAccessing
return an element not included in 'moreThan4Elements'
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
moreThan4Elements
return a collection including at leat 4 elements
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
subCollectionNotIn
return a collection for which at least one element is not included in 'moreThan4Elements'
test0FixtureSequencedElementAccessTest
testAfter
self debug: #testAfter
testAfterIfAbsent
self debug: #testAfterIfAbsent
testAt
self debug: #testAt
testAtAll
self debug: #testAtAll
testAtIfAbsent
self debug: #testAt
testAtLast
self debug: #testAtLast
testAtLastError
self debug: #testAtLast
testAtLastIfAbsent
self debug: #testAtLastIfAbsent
testAtOutOfBounds
self debug: #testAtOutOfBounds
testAtPin
self debug: #testAtPin
testAtRandom
testAtWrap
self debug: #testAt
testBefore
self debug: #testBefore
testBeforeIfAbsent
self debug: #testBefore
testFirstSecondThird
self debug: #testFirstSecondThird
testLast
self debug: #testLast
testMiddle
self debug: #testMiddle
variablesAndOffsetsDo:
TSequencedStructuralEqualityTest
A TSequencedStructuralEqualityTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0TSequencedStructuralEqualityTest
testEqualSignForSequenceableCollections
self debug: #testEqualSign
testHasEqualElements
self debug: #testHasEqualElements
testHasEqualElementsIsTrueForNonIdenticalButEqualCollections
self debug: #testHasEqualElementsIsTrueForNonIdenticalButEqualCollections
testHasEqualElementsOfIdenticalCollectionObjects
self debug: #testHasEqualElementsOfIdenticalCollectionObjects
variablesAndOffsetsDo:
TSetArithmetic
A TSetArithmetic is xxxxxxxxx.
anotherElementOrAssociationIn
return an element (or an association for Dictionary ) present in 'collection'
anotherElementOrAssociationNotIn
return an element (or an association for Dictionary )not present in 'collection'
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collection
collectionClass
return the class to be used to create instances of the class tested
containsAll:of:andOf:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
numberOfSimilarElementsInIntersection
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureSetAritmeticTest
testDifference
Answer the set theoretic difference of two collections.
testDifferenceWithNonNullIntersection
Answer the set theoretic difference of two collections.
testDifferenceWithSeparateCollection
Answer the set theoretic difference of two collections.
testIntersectionBasic
self debug: #testIntersectionBasic
testIntersectionEmpty
self debug: #testIntersectionEmpty
testIntersectionItself
self debug: #testIntersectionItself
testIntersectionTwoSimilarElementsInIntersection
self debug: #testIntersectionBasic
testUnion
self debug: #testUnionOfEmpties
testUnionOfEmpties
self debug: #testUnionOfEmpties
variablesAndOffsetsDo:
TSizeTest
A TSizeTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
sizeCollection
Answers a collection not empty
test0TSizeTest
testSize
variablesAndOffsetsDo:
TSortTest
A TSortTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
sortedInAscendingOrderCollection
return a collection sorted in an acsending order
test0SortingArrayedTest
an unsorted collection of number
testIsSorted
testIsSortedBy
testSort
testSortUsingSortBlock
unsortedCollection
retur a collection that is not yat sorted
variablesAndOffsetsDo:
TStructuralEqualityTest
Tests whether two objects are equals: they contain the same objects in the same order.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0TStructuralEqualityTest
testEqualSign
self debug: #testEqualSign
testEqualSignIsTrueForNonIdenticalButEqualCollections
self debug: #testEqualSignIsTrueForNonIdenticalButEqualCollections
testEqualSignOfIdenticalCollectionObjects
self debug: #testEqualSignOfIdenticalCollectionObjects
variablesAndOffsetsDo:
TPutTest
A TPutTest is xxxxxxxxx.
aValue
return a value to put into nonEmpty
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
indexArray
return a Collection including indexes between bounds of 'nonEmpty'
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixturePutOneOrMoreElementsTest
testAtAllIndexesPut
testAtAllPut
testAtAllPutAll
testAtLastPut
testAtWrapPut
self debug: #testAtWrapPut
testFromToPut
testSwapWith
self debug: #testSwapWith
valueArray
return a collection (with the same size than 'indexArray' )of values to be put in 'nonEmpty' at indexes in 'indexArray'
variablesAndOffsetsDo:
TConcatenationTest
A TConcatenationTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
firstCollection
return a collection that will be the first part of the concatenation
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
secondCollection
return a collection that will be the second part of the concatenation
setName:andRegisterInCategory:environment:
test0FixtureConcatenationTest
testConcatenation
| collection1 collection2 result |
collection1 := self firstCollection .
collection2 := self secondCollection .
result := collection1 , collection2.
collection1 do:[ :each | self assert: (result includes: each)].
collection2 do:[ :each | self assert: (result includes: each)].
testConcatenationWithDuplicate
testConcatenationWithEmpty
variablesAndOffsetsDo:
TPrintTest
A TPrintTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixturePrintTest
testPrintElementsOn
testPrintNameOn
testPrintOn
testPrintOnDelimiter
testPrintOnDelimiterLast
testStoreOn
for the moment work only for collection that include simple elements such that Integer
variablesAndOffsetsDo:
TCloneTest
A TCloneTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureCloneTest
testCopyCreatesNewObject
self debug: #testCopyCreatesNewObject
testCopyEmpty
self debug: #testCopyEmpty
testCopyNonEmpty
self debug: #testCopyNonEmpty
variablesAndOffsetsDo:
TIndexAccess
A TIndexAccess is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionMoreThan1NoDuplicates
return a collection of size > 1 without equal elements
copy
defaultEnvironment
elementInForIndexAccessing
return an element included in 'collectionMoreThan1NoDuplicates'
elementNotInForIndexAccessing
return an element not included in 'collectionMoreThan1NoDuplicates'
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureIndexAccessTest
testIdentityIndexOf
self debug: #testIdentityIndexOf
testIdentityIndexOfIAbsent
testIndexOf
self debug: #testIndexOf
testIndexOfIfAbsent
self debug: #testIndexOfIfAbsent
testIndexOfStartingAt
self debug: #testLastIndexOf
testIndexOfStartingAtIfAbsent
self debug: #testLastIndexOf
testIndexOfSubCollectionStartingAt
self debug: #testIndexOfIfAbsent
testIndexOfSubCollectionStartingAtIfAbsent
self debug: #testIndexOfIfAbsent
testLastIndexOf
self debug: #testLastIndexOf
testLastIndexOfIfAbsent
self debug: #testIndexOfIfAbsent
testLastIndexOfStartingAt
self debug: #testLastIndexOf
variablesAndOffsetsDo:
TIncludesWithIdentityCheckTest
A TIncludesWithIdentityCheckTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionWithCopyNonIdentical
return a collection that include elements for which 'copy' return a different object (this is not the case of SmallInteger)
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureIncludeWithIdentityTest
testIdentityIncludes
test the comportement in presence of elements 'includes' but not 'identityIncludes'
variablesAndOffsetsDo:
TIncludesTest
A TIncludesTest is xxxxxxxxx.
anotherElementNotIn
return an element different of 'elementNotIn' not included in 'nonEmpty'
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
elementNotIn
return an element not included in 'nonEmpty'
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureIncludeTest
testIdentityIncludesNonSpecificComportement
test the same comportement than 'includes: '
testIncludesAllOfAllThere
self debug: #testIncludesAllOfAllThere'
testIncludesAllOfNoneThere
self debug: #testIncludesAllOfNoneThere'
testIncludesAnyOfAllThere
self debug: #testIncludesAnyOfAllThere'
testIncludesAnyOfNoneThere
self debug: #testIncludesAnyOfNoneThere'
testIncludesElementIsNotThere
self debug: #testIncludesElementIsNotThere
testIncludesElementIsThere
self debug: #testIncludesElementIsThere
variablesAndOffsetsDo:
TIncludesForIdentityCollectionsTest
A TIncludesForIdentityCollectionsTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
identityCollectionWithElementsCopyNotIdentical
return a collection including elements for which #copy return a new object
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureInludesForIdentityCollectionsTest
testIdentityIncludesForIdentityCollections
test the comportement in presence of elements 'includes' but not 'identityIncludes'
testIncludesAllOfForIdentityCollections
self debug: #testIncludesAllOfAllThere'
testIncludesAnyOfForIdentityCollections
self debug: #testIncludesAnyOfAllThere'
testIncludesForIdentityCollections
self debug: #testIncludesElementIsThere
variablesAndOffsetsDo:
TIdentityAddTest
A TIdentityAddTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collection
copy
defaultEnvironment
element
environment
environment:
equalNotIdenticalElement
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
testIdentityAdd
variablesAndOffsetsDo:
TGrowableTest
A TGrowableTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
element
elementNotIn
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureRequirementsOfTGrowableTest
testAddEmptyGrows
self debug: #testAddEmptyGrows
testAddNonEmptyGrowsWhenNewElement
self debug: #testAddNonEmptyGrowsWhenNewElement
variablesAndOffsetsDo:
TOccurrencesTest
A TOccurrencesTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionWithoutEqualElements
copy
defaultEnvironment
elementNotInForOccurrences
return an element notIncluded in #collectionWithoutEqualElements
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureOccurrencesTest
testOccurrencesOf
testOccurrencesOfEmpty
testOccurrencesOfNotIn
variablesAndOffsetsDo:
TBeginsEndsWith
A TBeginsEndsWith is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureBeginsEndsWithTest
testsBeginsWith
testsBeginsWithEmpty
testsEndsWith
testsEndsWithEmpty
variablesAndOffsetsDo:
TEmptyTest
I group a set of tests testing whether a collection is empty.
I do not do any assymption on the elements being added since it would
bind me to know how to access it.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureEmptyTest
testIfEmpty
testIfEmptyifNotEmpty
testIfEmptyifNotEmptyDo
self debug #testIfEmptyifNotEmptyDo
testIfNotEmpty
testIfNotEmptyDo
testIfNotEmptyDoifNotEmpty
testIfNotEmptyifEmpty
testIsEmpty
testIsEmptyOrNil
testNotEmpty
variablesAndOffsetsDo:
TEmptySequenceableTest
A TEmptySequenceableTest is xxxxxxxxx.
accessValuePutIn
return access the element put in the non-empty collection
accessValuePutInOn:
return access the element put in the non-empty collection
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
selectorToAccessValuePutIn
return the selector of the method that should be invoked to access an element
setName:andRegisterInCategory:environment:
test0FixtureEmptySequenceableTest
testSequenceAbleIfEmptyifNotEmptyDo
self debug: #testSequenceAbleIfEmptyifNotEmptyDo
testSequenceIfEmptyifNotEmptyDo
self debug #testSequenceIfEmptyifNotEmptyDo
testSequenceIfNotEmpty
testSequenceIfNotEmptyDo
testSequenceIfNotEmptyDoifNotEmpty
testSequenceIfNotEmptyifEmpty
valuePutIn
the value that we will put in the non empty collection
variablesAndOffsetsDo:
TPutBasicTest
A TPutBasicTest is xxxxxxxxx.
aValue
return a value to put into nonEmpty
anIndex
return an index in nonEmpty bounds
anotherValue
return a value ( not eual to 'aValue' ) to put into nonEmpty
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixturePutTest
testAtPut
self debug: #testAtPut
testAtPutOutOfBounds
self debug: #testAtPutOutOfBounds
testAtPutTwoValues
self debug: #testAtPutTwoValues
variablesAndOffsetsDo:
TSubCollectionAccess
A TSubCollectionAccess is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
moreThan3Elements
return a collection including atLeast 3 elements
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureSubcollectionAccessTest
testAllButFirst
self debug: #testAllButFirst
testAllButFirstNElements
self debug: #testAllButFirst
testAllButLast
self debug: #testAllButLast
testAllButLastNElements
self debug: #testAllButFirst
testFirstNElements
self debug: #testFirstNElements
testLastNElements
self debug: #testLastNElements
variablesAndOffsetsDo:
TAsStringCommaAndDelimiterTest
A TAsStringCommaAndDelimiterTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
nonEmpty1Element
return a collection of size 1 including one element
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureAsStringCommaAndDelimiterTest
testAsCommaStringEmpty
testAsCommaStringMore
testAsCommaStringOne
testAsStringOnDelimiterEmpty
testAsStringOnDelimiterLastEmpty
testAsStringOnDelimiterLastMore
testAsStringOnDelimiterLastOne
testAsStringOnDelimiterMore
testAsStringOnDelimiterOne
variablesAndOffsetsDo:
TAsStringCommaAndDelimiterSequenceableTest
A TAsStringCommaAndDelimiterSequenceableTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
nonEmpty1Element
return a collection of size 1 including one element
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureAsStringCommaAndDelimiterTest
testAsCommaStringEmpty
testAsCommaStringMore
self assert: self oneTwoThreeItemCol asCommaString = '1, 2, 3'.
self assert: self oneTwoThreeItemCol asCommaStringAnd = '1, 2 and 3'
testAsCommaStringOne
self assert: self oneItemCol asCommaString = '1'.
self assert: self oneItemCol asCommaStringAnd = '1'.
testAsStringOnDelimiterEmpty
testAsStringOnDelimiterLastEmpty
testAsStringOnDelimiterLastMore
testAsStringOnDelimiterLastOne
testAsStringOnDelimiterMore
delim := ', '.
multiItemStream := '' readWrite.
self oneTwoThreeItemCol asStringOn: multiItemStream delimiter: ', '.
self assert: multiItemStream contents = '1, 2, 3'.
testAsStringOnDelimiterOne
delim := ', '.
oneItemStream := '' readWrite.
self oneItemCol asStringOn: oneItemStream delimiter: delim.
self assert: oneItemStream contents = '1'.
variablesAndOffsetsDo:
TPrintOnSequencedTest
A TPrintOnSequencedTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixturePrintTest
testPrintElementsOn
testPrintNameOn
testPrintOn
testPrintOnDelimiter
testPrintOnDelimiterLast
variablesAndOffsetsDo:
TAddTest
A TAddTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionWithElement
Returns a collection that already includes what is returned by #element.
copy
defaultEnvironment
element
Returns an object that can be added to the collection returned by #collection.
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
otherCollection
Returns a collection that does not include what is returned by #element.
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureRequirementsOfTAddTest
testTAdd
testTAddAll
testTAddIfNotPresentWithElementAlreadyIn
testTAddIfNotPresentWithNewElement
testTAddTwice
testTAddWithOccurences
testTWrite
testTWriteTwice
variablesAndOffsetsDo:
TIndexAccessForMultipliness
A TIndexAccessForMultipliness is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionWithNonIdentitySameAtEndAndBegining
return a collection with elements at end and begining equals only with classic equality (they are not the same object).
(others elements of the collection are not equal to those elements)
collectionWithSameAtEndAndBegining
return a collection with elements at end and begining equals .
(others elements of the collection are not equal to those elements)
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureIndexAccessFotMultipliness
testIdentityIndexOfDuplicate
self debug: #testIdentityIndexOf
testIdentityIndexOfIAbsentDuplicate
self debug: #testIdentityIndexOfIfAbsent
testIndexOfDuplicate
self debug: #testIndexOf
testIndexOfIfAbsentDuplicate
self debug: #testIndexOfIfAbsent
testIndexOfStartingAtDuplicate
self debug: #testLastIndexOf
testLastIndexOfDuplicate
self debug: #testLastIndexOf
testLastIndexOfIfAbsentDuplicate
self debug: #testIndexOfIfAbsent
testLastIndexOfStartingAtDuplicate
self debug: #testLastIndexOf
variablesAndOffsetsDo:
TOccurrencesForMultiplinessTest
A TOccurrencesForMultiplinessTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionWithEqualElements
return a collecition including atLeast two elements equal
copy
defaultEnvironment
elementTwiceInForOccurrences
return an element included exactly two time in # collectionWithEqualElements
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureOccurrencesForMultiplinessTest
testOccurrencesOfForMultipliness
variablesAndOffsetsDo:
TOccurrencesForIdentityCollectionsTest
A TOccurrencesForIdentityCollectionsTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
identityCollectionWithElementsCopyNotIdentical
return a collection including elements for which #copy return a new object
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureOccurrencesForIdentityCollectionsTest
testOccurencesOfForIdentityCollections
variablesAndOffsetsDo:
TIterateTest
I'm testing that high-order iterators are working.
Note however that I do not pay attention to the order of the elements.
Hence, my doTest is designed to not checking that.
TIterateSequenceableTest is about this distinction and as such will not be applicable to test
Set, Bag, Dictionary.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionWithoutNilElements
return a collection that doesn't includes a nil element and that doesn't includes equal elements'
copy
defaultEnvironment
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureIterateTest
testAllSatisfy
when all element satisfy the condition, should return true :
testAllSatisfyEmpty
testAnySastify
when all elements satisty the condition, should return true :
testBasicCollect
testBasicCollectEmpty
testCollectOnEmpty
testCollectThenSelectOnEmpty
testDetect
testDetectIfNone
testDo2
dc: Bad test, it assumes that a new instance of #speciesClass allows addition with #add:. This is not the case of Interval for which species is Array.
testDoSeparatedBy
testDoWithout
self debug: #testDoWithout
testInjectInto
testNoneSatisfy
testNoneSatisfyEmpty
testReject
testRejectEmpty
testRejectNoReject
testSelect
testSelectOnEmpty
variablesAndOffsetsDo:
TIterateSequencedReadableTest
A TIterateSequencedReadableTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmptyMoreThan1Element
return a collection that doesn't includes equal elements' and doesn't include nil elements'
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureIterateSequencedReadableTest
testAllButFirstDo
testAllButLastDo
testCollectFromTo
testDetectSequenced
testing that detect keep the first element returning true for sequenceable collections
testDo
testFindFirst
testFindFirstNotIn
testFindLast
testFindLastNotIn
testFromToDo
testKeysAndValuesDo
| result |
result:= OrderedCollection new.

self nonEmptyMoreThan1Element keysAndValuesDo:
[:i :value|
result add: (value+i)].

1 to: result size do:
[:i|
self assert: (result at:i)=((self nonEmptyMoreThan1Element at:i)+i)]
testKeysAndValuesDoEmpty
testPairsCollect
testPairsDo
testReverseDo
testReverseDoEmpty
testReverseWithDo
testWithCollect
testWithCollectError
testWithDo
testWithDoError
testWithIndexCollect
testWithIndexDo
| result |
result:=Array new: self nonEmptyMoreThan1Element size.
self nonEmptyMoreThan1Element withIndexDo: [:each :i | result at:i put:(each+i)].

1 to: result size do:[: i | self assert: (result at:i)= ((self nonEmptyMoreThan1Element at: i) + i)]
variablesAndOffsetsDo:
TConcatenationEqualElementsRemovedTest
A TConcatenationEqualElementsRemovedTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
testConcatenation
testConcatenationWithDuplicate
variablesAndOffsetsDo:
TConvertAsSetForMultiplinessIdentityTest
A TConvertAsSetForMultiplinessIdentityTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionWithCopy
return a collection of type 'self collectionWIithoutEqualsElements class' containing no elements equals ( with identity equality)
but 2 elements only equals with classic equality
collectionWithIdentical
return a collection of type : 'self collectionWIithoutEqualsElements class containing two elements equals ( with identity equality)
copy
defaultEnvironment
elementsCopyNonIdenticalWithoutEqualElements
return a collection that does niot incllude equal elements ( classic equality )
all elements included are elements for which copy is not identical to the element
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureAsSetForIdentityMultiplinessTest
a collection (of elements for which copy is not identical ) without equal elements:
testAsIdentitySetWithIdentityEqualsElements
testAsIdentitySetWithoutIdentityEqualsElements
variablesAndOffsetsDo:
TDictionaryAddingTest
A TDictionaryAddingTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
associationWithKeyAlreadyInToAdd
return an association that will be used to add to nonEmptyDict (the key of this association is already included in nonEmptyDict)
associationWithKeyNotInToAdd
return an association that will be used to add to nonEmptyDict (the key of this association is not included in nonEmptyDict)
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmptyDict
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureDictionaryAddingTest
testAddAll
testAddWithKeyAlreadyIn
testAddWithKeyNotIn
testDeclareFrom
variablesAndOffsetsDo:
TConvertAsSetForMultiplinessTest
A TConvertAsSetForMultiplinessTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureTConvertAsSetForMultiplinessTest
a collection with equal elements:
testAsIdentitySetWithEqualsElements
testAsSetWithEqualsElements
variablesAndOffsetsDo:
withEqualElements
return a collection including equal elements (classic equality)
TDictionaryValueAccessTest
A TDictionaryValueAccessTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
keyNotIn
return a key not included in nonEmpty
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureDictionaryElementAccess
testAt
testAtError
self run: #testAtError
testAtIfAbsent
testAtIfAbsentPut
testAtIfPresent
self run: #testAtIfAbsent
testAtPutDict
self run: #testAtPutDict
testAtPutNil
self run: #testAtPut
variablesAndOffsetsDo:
TAddForUniquenessTest
A TAddForUniquenessTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionWithElement
return a collection already including 'element'
collectionWithoutElement
return a collection that does not include 'element'
copy
defaultEnvironment
element
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureAddForUniquenessTest
testAddAlreadyThereDoesNotCount
testAddNewElementIncrementsSize
testTAddIfNotPresentWithElementAlreadyIn
testTAddIfNotPresentWithNewElement
variablesAndOffsetsDo:
TAddForIdentityCollectionsTest
A TAddForIdentityCollectionsTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
identityCollectionWithElementsCopyNotIdentical
Returns a collection including elements for which #copy doesn't return the same object.
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureAddForIdentityCollectionsTest
testTAddIfNotPresentWithElementCopy
test specific to IdentityCollections for wich #addIfNotPresent should use == check insted of =.
variablesAndOffsetsDo:
TCreationWithTest
A TCreationWithTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionClass
collectionMoreThan5Elements
return a collection including at least 5 elements
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureCreationWithTest
testOfSize
self debug: #testOfSize
testWith
self debug: #testWith
testWithAll
self debug: #testWithAll
testWithWith
self debug: #testWithWith
testWithWithWith
self debug: #testWithWithWith
testWithWithWithWith
self debug: #testWithWithWithWith
testWithWithWithWithWith
self debug: #testWithWithWithWithWith
variablesAndOffsetsDo:
TCopyTest
Tests whether a copied object contains the same elements than its source.
Note that the order is not garanteed -- see TEqualityTest for that.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionNotIncluded
return a collection for wich each element is not included in 'nonEmpty'
collectionWithElementsToRemove
return a collection of elements included in 'nonEmpty'
copy
defaultEnvironment
elementToAdd
return an element of type 'nonEmpy' elements'type' not yet included in nonEmpty
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0CopyTest
testCopyEmptyWith
self debug: #testCopyWith
testCopyEmptyWithout
self debug: #testCopyEmptyWithout
testCopyEmptyWithoutAll
self debug: #testCopyEmptyWithoutAll
testCopyNonEmptyWith
self debug: #testCopyNonEmptyWith
testCopyNonEmptyWithout
self debug: #testCopyNonEmptyWithout
testCopyNonEmptyWithoutAll
self debug: #testCopyNonEmptyWithoutAll
testCopyNonEmptyWithoutAllNotIncluded
self debug: #testCopyNonEmptyWithoutAllNotIncluded
testCopyNonEmptyWithoutNotIncluded
self debug: #testCopyNonEmptyWithoutNotIncluded
variablesAndOffsetsDo:
TCopySequenceableWithReplacementForSorted
A TCopySequenceableWithReplacementForSorted is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionOfSize5
return a collection of size 5
copy
defaultEnvironment
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
replacementCollection
return a collection including elements of type 'collectionOfSize5' elements'type
requirements
setName:andRegisterInCategory:environment:
test0FixtureCopyWithReplacementForSorted
testCopyFromToWithForSorted
testCopyReplaceAllWithForSorted
variablesAndOffsetsDo:
TCopySequenceableWithReplacement
A TCopySequenceableWithReplacement is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionWith1TimeSubcollection
return a collection including 'oldSubCollection' only one time
collectionWith2TimeSubcollection
return a collection including 'oldSubCollection' two or many time
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
firstIndexesOf:in:
return an OrderedCollection with the first indexes of the occurrences of subCollection in collection
hasClassTrait
howMany:in:
return an integer representing how many time 'subCollection' appears in 'collection'
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
oldSubCollection
return a subCollection included in collectionWith1TimeSubcollection .
ex : subCollection := #( 2 3 4) and collectionWith1TimeSubcollection := #(1 2 3 4 5)
removeFromSystem
removeFromSystem:
rename:
replacementCollection
return a collection that will be used to replace 'oldSubcollection' in ' collectionWith1TimeSubcollection'
requirements
setName:andRegisterInCategory:environment:
test0FixtureCopyWithReplacementTest
testCopyReplaceAllWith1Occurence
testCopyReplaceAllWithManyOccurence
testing fixture here as this method may be not used for collection that can't contain equals element :
testCopyReplaceFromToWith
testCopyReplaceFromToWithInsertion
variablesAndOffsetsDo:
TCopySequenceableWithOrWithoutSpecificElements
A TCopySequenceableWithOrWithoutSpecificElements is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
indexInNonEmpty
return an index between bounds of 'nonEmpty'
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureCopyWithOrWithoutSpecificElementsTest
testCopyWithFirst
testCopyWithSequenceable
testCopyWithoutFirst
testCopyWithoutIndex
testForceToPaddingStartWith
testForceToPaddingWith
variablesAndOffsetsDo:
TCopySequenceableSameContents
A TCopySequenceableSameContents is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionWithSortableElements
return a collection only including elements that can be sorted (understanding '<' )
copy
defaultEnvironment
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureCopySameContentsTest
testReverse
testReversed
testShallowCopy
testShallowCopyEmpty
testShuffled
testSortBy
can only be used if the collection tested can include sortable elements :
variablesAndOffsetsDo:
TCopyPreservingIdentityTest
A TCopyPreservingIdentityTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
testCopyReturnsIdentity
self debug: #testCopyReturnsIdentity
variablesAndOffsetsDo:
TCopyPartOfSequenceableForMultipliness
A TCopyPartOfSequenceableForMultipliness is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionWithSameAtEndAndBegining
return a collection with elements at end and begining equals .
(others elements of the collection are not equal to those elements)
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureCopyPartOfForMultipliness
testCopyAfterLastWithDuplicate
testCopyAfterWithDuplicate
testCopyUpToLastWithDuplicate
testCopyUpToWithDuplicate
variablesAndOffsetsDo:
TCopyPartOfSequenceable
A TCopyPartOfSequenceable is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionWithoutEqualsElements
return a collection not including equal elements
copy
defaultEnvironment
empty
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
indexInForCollectionWithoutDuplicates
return an index between 'collectionWithoutEqualsElements' bounds
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureCopyPartOfSequenceableTest
testCopyAfter
testCopyAfterEmpty
testCopyAfterLast
testCopyAfterLastEmpty
testCopyEmptyMethod
testCopyFromTo
testCopyUpTo
testCopyUpToEmpty
testCopyUpToLast
testCopyUpToLastEmpty
variablesAndOffsetsDo:
TConvertTest
A TConvertTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
assertNoDuplicates:whenConvertedTo:
assertNonDuplicatedContents:whenConvertedTo:
assertSameContents:whenConvertedTo:
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionWithoutEqualElements
return a collection without equal elements
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
integerCollectionWithoutEqualElements
return a collection of integer without equal elements
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureTConvertTest
a collection of number without equal elements:
testAsArray
self debug: #testAsArray3
testAsBag
testAsByteArray
testAsIdentitySet
test with a collection without equal elements :
testAsOrderedCollection
testAsSet
test with a collection without equal elements :
variablesAndOffsetsDo:
TConvertAsSortedTest
A TConvertAsSortedTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
collectionWithSortableElements
return a collection elements that can be sorte ( understanding message ' < ' or ' > ')
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureConverAsSortedTest
testAsSortedArray
testAsSortedCollection
testAsSortedCollectionWithSortBlock
variablesAndOffsetsDo:
TDictionaryPrintingTest
A TDictionaryPrintingTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
emptyDict
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newEmptyDict
newTemplateIn:
nonEmptyDict
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
testPrintElementsOn
testStoreOn
variablesAndOffsetsDo:
TDictionaryRemovingTest
A TDictionaryRemovingTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
emptyDict
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
keyNotInNonEmptyDict
return a key not included in nonEmptyDict
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newEmptyDict
newTemplateIn:
nonEmptyDict
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureDictionaryRemovingTest
testKeysAndValuesRemove
testRemove
testRemoveKey
self debug: #testRemoveKey
testRemoveKeyIfAbsent
variablesAndOffsetsDo:
TDictionaryAssociationAccessTest
A TDictionaryAssociationAccessTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
keyNotIn
return a key not included in nonEmpty
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureDictionaryAssocitionAccess
testAssociationAt
testAssociationAtError
testAssociationAtIfAbsent
testAssociationDeclareAt
variablesAndOffsetsDo:
TDictionaryComparingTest
A TDictionaryComparingTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
testEquality
variablesAndOffsetsDo:
TDictionaryCopyingTest
A TDictionaryCopyingTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
emptyDict
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newEmptyDict
newTemplateIn:
nonEmptyDict
nonEmptyDifferentFromNonEmptyDict
return a dictionary for which all keys are not included in nonEmptyDict
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureDictionaryCopyingTest
testDictionaryConcatenationWithCommonKeys
testDictionaryConcatenationWithCommonKeysDifferentValues
testDictionaryConcatenationWithoutCommonKeys
variablesAndOffsetsDo:
TDictionaryEnumeratingTest
A TDictionaryEnumeratingTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
emptyDict
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newEmptyDict
newTemplateIn:
nonEmptyDict
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureDictionaryEnumeratingTest
testAssociationsDo
testAssociationsSelect
testCollect
testDo
testKeysAndValuesDo
testKeysDo
testReject
Ensure that Dictionary>>reject: answers a dictionary not something else
testSelect
testValuesDo
variablesAndOffsetsDo:
TDictionaryImplementationTest
A TDictionaryImplementationTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
testAtNil
(self run: #testAtNil)
testFindElementOrNil
Set>>findElementOrNil: takes an associaiton (when called on a dictionary) an integer, the index of the first
position at is either equal to the assocation or which is nil
testKeyAt
testNew
testPseudo
(self run: #testPseudo)
testPseudoVariablesAreValidKeys
(self run: #testPseudoVariablesAreValidKeys)
testScanFor
Set>>scanFor: return an integer
testSpecies
variablesAndOffsetsDo:
TDictionaryIncludesTest
A TDictionaryIncludesTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
keyNotInNonEmpty
return a key not included in nonEmpty
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureDictionaryIncludes
testIncludesAssociation
testIncludesComportementForDictionnary
testIncludesIdentityBasicComportement
testIncludesKey
valueNotInNonEmpty
return a value not included in nonEmpty
variablesAndOffsetsDo:
TDictionaryIncludesWithIdentityCheckTest
A TDictionaryIncludesWithIdentityCheckTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmptyWithCopyNonIdentical
return a collection including elements for wich copy is not identical to the initial element ( this is not the cas of Integer )
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureDictionaryIncludesIdentity
testIncludesIdentitySpecificComportement
variablesAndOffsetsDo:
TDictionaryKeyAccessTest
A TDictionaryKeyAccessTest is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmptyWithoutEqualsValues
return a dictionary that doesn't include equal values'
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureDictionaryKeyAccess
testKeyAtIdentityValue
testKeyAtIdentityValueIfAbsent
self run: #testKeyAtValue
testKeyAtValue
self run: #testKeyAtValue
testKeyAtValueIfAbsent
self run: #testKeyAtValue
valueNotIn
return a value not included in nonEmptyWithoutEqualValues
variablesAndOffsetsDo:
TDictionaryKeysValuesAssociationsAccess
A TDictionaryKeysValuesAssociationsAccess is xxxxxxxxx.
applyChangesOfNewTraitCompositionReplacing:
asClassDefinition
asClassSideNode
asNode
baseTrait
basicCategory
basicCategory:
binding
classDefinitions
classTrait
classTrait:
copy
defaultEnvironment
environment
environment:
fileOutOn:moveSource:toFile:
fileOutOn:moveSource:toFile:initializing:
hasClassTrait
includesBehavior:
initialize
isBaseTrait
isClassTrait
isObsolete
isValidTraitName:
name
name:
name:traitComposition:methodDict:localSelectors:organization:
named:uses:category:
named:uses:category:env:
new
newTemplateIn:
nonEmpty
obsolete
removeFromSystem
removeFromSystem:
rename:
requirements
setName:andRegisterInCategory:environment:
test0FixtureDictionaryKeysValuesAssociationsAccess
testAssociations
testKeys
testKeysSortedSafely
testValues
variablesAndOffsetsDo:
TranscriptTest
A TranscriptTest is xxxxxxxxx.
Instance Variables
testCloseCauseFlushing
testOtherInstancesOfTranscriptStreamAsString
testOtherInstancesOfTranscriptStreamPrintString
testOtherInstancesOfTranscriptStreamSelfEvaluating
testTranscriptAsString
testTranscriptPrintString
testTranscriptisSelfEvaluating
WeakIdentityKeyDictionaryTest
A WeakIdentityKeyDictionaryTest is xxxxxxxxx.
Instance Variables
classToBeTested
shouldInheritSelectors
testAtPutNil
self run: #testAtPut
testNoNils
WeakKeyDictionaryTest
A WeakKeyDictionaryTest is xxxxxxxxx.
Instance Variables
classToBeTested
shouldInheritSelectors
WeakKeyToCollectionDictionaryTest
A WeakKeyToCollectionDictionaryTest is xxxxxxxxx.
Instance Variables
classToBeTested
shouldInheritSelectors
testKeysAndValuesRemove
should be tested with collection keys
testRemoveKey
self debug: #testRemoveKey
testRemoveKeyIfAbsent
| collection oldSize keyIn value result |
collection := self nonEmptyDict .
oldSize := collection size.
keyIn := collection keys anyOne.
value := collection at: keyIn .

result := collection removeKey: keyIn ifAbsent: [888].

self assert: result = value.
self assert: (collection size = (oldSize - 1)).
self should: [ (collection at: keyIn )] raise: Error.

self assert: (collection removeKey: self keyNotInNonEmptyDict ifAbsent: [888] ) = 888.
WeakSetTest
A WeakSetTest is xxxxxxxxx.
Instance Variables
classToBeTested
shouldInheritSelectors
testClassComment
this test doesn't pass :
WeakValueDictionaryTest
A WeakValueDictionaryTest is xxxxxxxxx.
Instance Variables
classToBeTested
shouldInheritSelectors
WideCharacterSetTest
WideCharacterSetTest holds tests for WideCharacterSet
testAddingToCharacterSet
testCopy
testCreation
By now, only creation method is newFrom:
WideStringTest
This is the unit test for the class String. 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
testAsInteger
testAtPut
Non regression test for http://bugs.squeak.org/view.php?id=6998
testBeginsWith
from johnmci at http://bugs.squeak.org/view.php?id=5331
testCharactersExactlyMatching
from johnmci at http://bugs.squeak.org/view.php?id=5331
testCompare
from johnmci at http://bugs.squeak.org/view.php?id=5331
testEndsWith
from johnmci at http://bugs.squeak.org/view.php?id=5331
testEqual
from johnmci at http://bugs.squeak.org/view.php?id=5331
testFindSubstring
This is related to http://bugs.squeak.org/view.php?id=6366
finding substring in a WideString was broken because matchTable are byte-wise
testMatch
from johnmci at http://bugs.squeak.org/view.php?id=5331
testRelationOrder
from johnmci at http://bugs.squeak.org/view.php?id=5331
testRelationOrderWithCase
from johnmci at http://bugs.squeak.org/view.php?id=5331
testSameAs
from johnmci at http://bugs.squeak.org/view.php?id=5331
testSubstrings
this is related to http://bugs.squeak.org/view.php?id=6367
WriteStreamTest
A WriteStreamTest is xxxxxxxxx.
Instance Variables
testEnsureASpace
self debug: #testEnsureASpace
testEnsureASpace2
self debug: #testEnsureASpace2
testEnsureEndsWith
self debug: #testEnsureEndsWith
testIsEmpty
testNew
testSetToEnd