Skip to content

Commit

Permalink
Add asserts for burst intervals
Browse files Browse the repository at this point in the history
  • Loading branch information
hellerve committed Mar 28, 2024
1 parent 48c6eb7 commit d60eed3
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/GToolkit-Utility-Algorithms/GtBurstAnalyzerExamples.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,25 @@ Class {
{ #category : #accessing }
GtBurstAnalyzerExamples >> burstAnalyzerWithCustomCutoff [
<gtExample>
| analyzer |
| analyzer runs |
analyzer := self simpleBurstAnalyzer cutoff: 30.

self assert: analyzer run size equals: 2.
runs := analyzer run.

self assert: runs size equals: 2.
self assert: runs first equals: (5 to: 6).

^ analyzer
]

{ #category : #accessing }
GtBurstAnalyzerExamples >> simpleBurstAnalyzer [
<gtExample>
| analyzer |
| analyzer runs |
analyzer := GtBurstAnalyzer new timeSeries: self timeSeries.

self assert: analyzer run size equals: 1.
runs := analyzer run.

self assert: runs size equals: 1.
self assert: runs first equals: (13 to: 13).

^ analyzer
]
Expand Down

0 comments on commit d60eed3

Please sign in to comment.