You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: dev/src/Exercis@FlattenArray/FlattenArrayTest.class.st
+15-14
Original file line number
Diff line number
Diff line change
@@ -16,15 +16,16 @@ output: [1,2,3,4,5]
16
16
Without using the built-in flattening method, you can easily derive your own, but you will need to differeniate between what is a collection and what is not
17
17
"
18
18
Class {
19
-
#name : #FlattenArrayTest,
20
-
#superclass : #ExercismTest,
19
+
#name : 'FlattenArrayTest',
20
+
#superclass : 'ExercismTest',
21
21
#instVars : [
22
22
'flattenArrayCalculator'
23
23
],
24
-
#category : #'Exercis@FlattenArray'
24
+
#category : 'Exercis@FlattenArray',
25
+
#package : 'Exercis@FlattenArray'
25
26
}
26
27
27
-
{ #category : #config }
28
+
{ #category : 'config' }
28
29
FlattenArrayTestclass>> exercise [
29
30
"Answer the configured exercise meta data for this exercise, an ExercismExercise"
30
31
@@ -35,73 +36,73 @@ FlattenArrayTest class >> exercise [
35
36
yourself
36
37
]
37
38
38
-
{ #category : #config }
39
+
{ #category : 'config' }
39
40
FlattenArrayTestclass>> uuid [
40
41
"Answer a unique id for this exercise"
41
42
^'aa15f716-9d41-0d00-9006-3c7208866539'
42
43
]
43
44
44
-
{ #category : #config }
45
+
{ #category : 'config' }
45
46
FlattenArrayTestclass>> version [
46
47
"Generated from specification: 29 March 2019"
47
48
^'1.2.0'
48
49
]
49
50
50
-
{ #category : #running }
51
+
{ #category : 'running' }
51
52
FlattenArrayTest>> setUp [
52
53
super setUp.
53
54
flattenArrayCalculator :=FlattenArraynew
54
55
]
55
56
56
-
{ #category : #tests }
57
+
{ #category : 'tests' }
57
58
FlattenArrayTest>> test01_NoNesting [
58
59
| result |
59
60
60
61
result := flattenArrayCalculator flattenArray:#(0 1 2 ) .
0 commit comments