File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -1392,6 +1392,19 @@ DataSeriesTest >> testInjectInto [
13921392 self assert: actual equals: expected
13931393]
13941394
1395+ { #category : #' tests - testing' }
1396+ DataSeriesTest >> testIsNumerical [
1397+
1398+ self assert: #( 1 2 3 ) asDataSeries isNumerical.
1399+ self deny: #( 1 2 '3' ) asDataSeries isNumerical
1400+ ]
1401+
1402+ { #category : #' tests - testing' }
1403+ DataSeriesTest >> testIsNumericalWithNils [
1404+
1405+ self assert: #( 1 nil 3 ) asDataSeries isNumerical
1406+ ]
1407+
13951408{ #category : #' tests - accessing' }
13961409DataSeriesTest >> testLast [
13971410
Original file line number Diff line number Diff line change @@ -420,7 +420,8 @@ DataSeries >> isCategorical [
420420
421421{ #category : #' categorical-numerical' }
422422DataSeries >> isNumerical [
423- ^ forcedIsNumerical ifNil: [self uniqueValues allSatisfy: [:each |each isNumber]]
423+
424+ ^ forcedIsNumerical ifNil: [ (self uniqueValues copyWithout: nil ) allSatisfy: [ :each | each isNumber ] ]
424425]
425426
426427{ #category : #testing }
You can’t perform that action at this time.
0 commit comments