Skip to content

Commit

Permalink
Merge pull request #265 from pharo-spec/dev-1.0
Browse files Browse the repository at this point in the history
remove dependencies to GT
  • Loading branch information
estebanlm authored Jul 25, 2021
2 parents 32c869d + 4002f88 commit 3f9dfd7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ StAbstractProcessorTest >> runForText: aText [
StAbstractProcessorTest >> setUp [

super setUp.
SptDefaultSourceFactory forTest.
StDefaultSourceFactory forTest.
]

{ #category : #running }
StAbstractProcessorTest >> tearDown [

SptSourceFactory reset.
StSourceFactory reset.
super tearDown.
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ StClassProcessorTest >> testGTClassProcessorIsRemovedAfterUpdatingText [
self runForText: 'gtclass'.
self rerunWithText: 'gtclassprocesst'.

self denyResultsIncludes: SptClassProcessor
self denyResultsIncludes: StClassProcessor
]

{ #category : #tests }
Expand Down
22 changes: 11 additions & 11 deletions src/NewTools-Spotter-Processors-Tests/StIteratorsTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Class {
StIteratorsTest >> testBeginsWithFilterDoesNotFetchTwiceIfTheFilterIsARefinementOfPreviousText [

| it |
it := (SptGeneratorBlockIterator on: [ :x | x value: 'bbb'; value:'bbb1'; error ]) beginsWithFilter: 'b'.
it := (StGeneratorBlockIterator on: [ :x | x value: 'bbb'; value:'bbb1'; error ]) beginsWithFilter: 'b'.
it next.
it beginsWithFilter: 'bb'.

Expand All @@ -19,15 +19,15 @@ StIteratorsTest >> testBeginsWithFilterDoesNotFetchTwiceIfTheFilterIsARefinement
StIteratorsTest >> testBeginsWithFilterReturnsValidResults [

| it |
it := (SptCollectionIterator on: { 'aaa'. 'bbb'. 'ccc' }) beginsWithFilter: 'b'.
it := (StCollectionIterator on: { 'aaa'. 'bbb'. 'ccc' }) beginsWithFilter: 'b'.
self assert: it next equals: 'bbb'
]

{ #category : #tests }
StIteratorsTest >> testBeginsWithFilterReturnsValidResultsWithTheSameFilter [

| it |
it := (SptCollectionIterator on: { 'aaa'. 'bbb'. 'ccc' }) beginsWithFilter: 'b'.
it := (StCollectionIterator on: { 'aaa'. 'bbb'. 'ccc' }) beginsWithFilter: 'b'.
it beginsWithFilter: 'b'.

self assert: it next equals: 'bbb'
Expand All @@ -37,7 +37,7 @@ StIteratorsTest >> testBeginsWithFilterReturnsValidResultsWithTheSameFilter [
StIteratorsTest >> testIteratorOnACollectedCollectionIsFiltered [

| it |
it := ((SptCollectionIterator on: #(1 2 3))
it := ((StCollectionIterator on: #(1 2 3))
collect: [ :e | e * 2 ])
select: [:e | e even].
self assertCollection: (it next: 3) hasSameElements: #(2 4 6).
Expand All @@ -49,7 +49,7 @@ StIteratorsTest >> testIteratorOnACollectionIsFiltered [

| it |

it := (SptCollectionIterator on: #(1 2 3)) select: [:e | e even].
it := (StCollectionIterator on: #(1 2 3)) select: [:e | e even].

self assertCollection: (it next: 3) hasSameElements: #(2).

Expand All @@ -59,7 +59,7 @@ StIteratorsTest >> testIteratorOnACollectionIsFiltered [
StIteratorsTest >> testIteratorOnACollectionReturnsTheCollection [

| it |
it := SptCollectionIterator on: #(1 2 3).
it := StCollectionIterator on: #(1 2 3).
self assertCollection: (it next:3) hasSameElements: #(1 2 3)
]

Expand All @@ -68,7 +68,7 @@ StIteratorsTest >> testIteratorOnACollectionReturnsTheFirstValue [

| it |

it := SptCollectionIterator on: #(1 2 3).
it := StCollectionIterator on: #(1 2 3).
self assert: (it next) equals: 1
]

Expand All @@ -77,7 +77,7 @@ StIteratorsTest >> testIteratorOnACollectionReturnsTheFirstValueAndSecondValue [

| it |

it := SptCollectionIterator on: #(1 2 3).
it := StCollectionIterator on: #(1 2 3).
self assert: (it next) equals: 1.
self assert: (it next) equals: 2
]
Expand All @@ -86,7 +86,7 @@ StIteratorsTest >> testIteratorOnACollectionReturnsTheFirstValueAndSecondValue [
StIteratorsTest >> testIteratorOnACollectionWithCollectReturnsCorrectFirstValue [

| it |
it := (SptCollectionIterator on: #(1 2 3)) collect: [:e | e * 3].
it := (StCollectionIterator on: #(1 2 3)) collect: [:e | e * 3].
self assert: (it next) equals: 3.

]
Expand All @@ -95,7 +95,7 @@ StIteratorsTest >> testIteratorOnACollectionWithCollectReturnsCorrectFirstValue
StIteratorsTest >> testIteratorOnACollectionWithCollectReturnsCorrectValues [

| it |
it := (SptCollectionIterator on: #(1 2 3)) collect: [:e | e * 3].
it := (StCollectionIterator on: #(1 2 3)) collect: [:e | e * 3].
self assertCollection: (it next: 3) hasSameElements: #(3 6 9).

]
Expand All @@ -104,7 +104,7 @@ StIteratorsTest >> testIteratorOnACollectionWithCollectReturnsCorrectValues [
StIteratorsTest >> testIteratorOnACollectionWithTwoCollectReturnsCorrectFirstValue [

| it |
it := ((SptCollectionIterator on: #(1 2 3)) collect: [:e | e * 3]) collect: [:e | e * 2].
it := ((StCollectionIterator on: #(1 2 3)) collect: [:e | e * 3]) collect: [:e | e * 2].
self assert: it next equals: 6.

]
Expand Down

0 comments on commit 3f9dfd7

Please sign in to comment.