Skip to content

Commit 595ea53

Browse files
authored
Merge pull request #97 from pharo-spec/migrate-sources
Migrate to Tonel V3
2 parents d8191d1 + 72c737f commit 595ea53

File tree

57 files changed

+450
-389
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+450
-389
lines changed

src/BaselineOfSindarin/BaselineOfSindarin.class.st

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
Class {
2-
#name : #BaselineOfSindarin,
3-
#superclass : #BaselineOf,
4-
#category : #BaselineOfSindarin
2+
#name : 'BaselineOfSindarin',
3+
#superclass : 'BaselineOf',
4+
#category : 'BaselineOfSindarin',
5+
#package : 'BaselineOfSindarin'
56
}
67

7-
{ #category : #baselines }
8+
{ #category : 'baselines' }
89
BaselineOfSindarin >> baseline: spec [
910

1011
<baseline>
@@ -21,7 +22,7 @@ BaselineOfSindarin >> baseline: spec [
2122
group: 'experiments' with: #( 'default' 'Sindarin-Experiments' )
2223
]
2324

24-
{ #category : #baselines }
25+
{ #category : 'baselines' }
2526
BaselineOfSindarin >> postloadWithLoader: loader withPackageSpec: spec [
2627

2728
InstructionStream compiledMethodAt: #willJumpIfFalse ifAbsent: [

src/BaselineOfSindarin/package.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Package { #name : #BaselineOfSindarin }
1+
Package { #name : 'BaselineOfSindarin' }

src/Sindarin-Demo/SindarinDemo.class.st

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
11
Class {
2-
#name : #SindarinDemo,
3-
#superclass : #Object,
2+
#name : 'SindarinDemo',
3+
#superclass : 'Object',
44
#instVars : [
55
'count'
66
],
7-
#category : #'Sindarin-Demo'
7+
#category : 'Sindarin-Demo',
8+
#package : 'Sindarin-Demo'
89
}
910

10-
{ #category : #'as yet unclassified' }
11+
{ #category : 'as yet unclassified' }
1112
SindarinDemo >> doThings1 [
1213
1+1.
1314
ZeroDivide signal.
1415
]
1516

16-
{ #category : #'as yet unclassified' }
17+
{ #category : 'as yet unclassified' }
1718
SindarinDemo >> doThings2 [
1819
Point x: 2 y: 2.
1920
SubscriptOutOfBounds signal.
2021
]
2122

22-
{ #category : #'as yet unclassified' }
23+
{ #category : 'as yet unclassified' }
2324
SindarinDemo >> doThingsAndSignalExceptions [
2425
self doThings1.
2526
Error signal.
2627
self doThings2.
2728
]
2829

29-
{ #category : #'as yet unclassified' }
30+
{ #category : 'as yet unclassified' }
3031
SindarinDemo >> primeCount [
3132
count := 0.
3233
{ 2. 3. 5. 7. 10. 11. 13. 17. 19. 23 } do: [:int | count := count + int ]
3334

3435
]
3536

36-
{ #category : #'as yet unclassified' }
37+
{ #category : 'as yet unclassified' }
3738
SindarinDemo >> primeCountHalt [.
3839
count := 0.
3940
self halt.

src/Sindarin-Demo/SindarinDemo_GoldDigger.class.st

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,61 +7,62 @@ dbg step: 3; stepOver: 2; step: 3.
77
88
"
99
Class {
10-
#name : #'SindarinDemo_GoldDigger',
11-
#superclass : #Object,
12-
#category : #'Sindarin-Demo'
10+
#name : 'SindarinDemo_GoldDigger',
11+
#superclass : 'Object',
12+
#category : 'Sindarin-Demo',
13+
#package : 'Sindarin-Demo'
1314
}
1415

15-
{ #category : #'as yet unclassified' }
16+
{ #category : 'as yet unclassified' }
1617
SindarinDemo_GoldDigger >> gold [
1718
^ 42
1819
]
1920

20-
{ #category : #'as yet unclassified' }
21+
{ #category : 'as yet unclassified' }
2122
SindarinDemo_GoldDigger >> moreRock [
2223
^self
2324
]
2425

25-
{ #category : #'as yet unclassified' }
26+
{ #category : 'as yet unclassified' }
2627
SindarinDemo_GoldDigger >> rock [
2728
self halt.
2829
self rock1
2930
]
3031

31-
{ #category : #'as yet unclassified' }
32+
{ #category : 'as yet unclassified' }
3233
SindarinDemo_GoldDigger >> rock1 [
3334
self rock2
3435
]
3536

36-
{ #category : #'as yet unclassified' }
37+
{ #category : 'as yet unclassified' }
3738
SindarinDemo_GoldDigger >> rock2 [
3839
self rock3
3940
]
4041

41-
{ #category : #'as yet unclassified' }
42+
{ #category : 'as yet unclassified' }
4243
SindarinDemo_GoldDigger >> rock3 [
4344
self moreRock.
4445
self moreRock.
4546
self rock4.
4647
]
4748

48-
{ #category : #'as yet unclassified' }
49+
{ #category : 'as yet unclassified' }
4950
SindarinDemo_GoldDigger >> rock4 [
5051
self rock5.
5152
]
5253

53-
{ #category : #'as yet unclassified' }
54+
{ #category : 'as yet unclassified' }
5455
SindarinDemo_GoldDigger >> rock5 [
5556
self rock6.
5657
]
5758

58-
{ #category : #'as yet unclassified' }
59+
{ #category : 'as yet unclassified' }
5960
SindarinDemo_GoldDigger >> rock6 [
6061
"Relevant point for the bug you are tracking"
6162
self gold.
6263
]
6364

64-
{ #category : #'as yet unclassified' }
65+
{ #category : 'as yet unclassified' }
6566
SindarinDemo_GoldDigger >> start [
6667
self rock
6768
]

src/Sindarin-Demo/SindarinDemo_SkipNextException.class.st

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,49 +10,50 @@ dbg := SindarinDebugger debug: [ SindarinDemo_SkipNextException new start ].
1010
dbg skip.
1111
"
1212
Class {
13-
#name : #'SindarinDemo_SkipNextException',
14-
#superclass : #Object,
15-
#category : #'Sindarin-Demo'
13+
#name : 'SindarinDemo_SkipNextException',
14+
#superclass : 'Object',
15+
#category : 'Sindarin-Demo',
16+
#package : 'Sindarin-Demo'
1617
}
1718

18-
{ #category : #accessing }
19+
{ #category : 'accessing' }
1920
SindarinDemo_SkipNextException >> method1 [
2021
self halt.
2122
self method2.
2223
]
2324

24-
{ #category : #accessing }
25+
{ #category : 'accessing' }
2526
SindarinDemo_SkipNextException >> method2 [
2627
self method3.
2728
]
2829

29-
{ #category : #accessing }
30+
{ #category : 'accessing' }
3031
SindarinDemo_SkipNextException >> method3 [
3132
self method4.
3233
]
3334

34-
{ #category : #accessing }
35+
{ #category : 'accessing' }
3536
SindarinDemo_SkipNextException >> method4 [
3637
self method5.
3738
]
3839

39-
{ #category : #accessing }
40+
{ #category : 'accessing' }
4041
SindarinDemo_SkipNextException >> method5 [
4142
Error signal: 'Something truly unexpected happened :)'.
4243
self method6.
4344
]
4445

45-
{ #category : #accessing }
46+
{ #category : 'accessing' }
4647
SindarinDemo_SkipNextException >> method6 [
4748
self method7.
4849
]
4950

50-
{ #category : #accessing }
51+
{ #category : 'accessing' }
5152
SindarinDemo_SkipNextException >> method7 [
5253
^ 42
5354
]
5455

55-
{ #category : #accessing }
56+
{ #category : 'accessing' }
5657
SindarinDemo_SkipNextException >> start [
5758
self method1
5859
]

src/Sindarin-Demo/SindarinDemo_StepToNextIteration.class.st

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
Class {
2-
#name : #'SindarinDemo_StepToNextIteration',
3-
#superclass : #Object,
4-
#category : #'Sindarin-Demo'
2+
#name : 'SindarinDemo_StepToNextIteration',
3+
#superclass : 'Object',
4+
#category : 'Sindarin-Demo',
5+
#package : 'Sindarin-Demo'
56
}
67

7-
{ #category : #accessing }
8+
{ #category : 'accessing' }
89
SindarinDemo_StepToNextIteration >> start [
910
self sum
1011
]
1112

12-
{ #category : #accessing }
13+
{ #category : 'accessing' }
1314
SindarinDemo_StepToNextIteration >> sum [
1415
| count |
1516
self halt.

src/Sindarin-Demo/package.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Package { #name : #'Sindarin-Demo' }
1+
Package { #name : 'Sindarin-Demo' }

src/Sindarin-Experiments/Bug_TestPassesWhenRanAloneButFailsWhenRanFromTheClass.class.st

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
Class {
2-
#name : #'Bug_TestPassesWhenRanAloneButFailsWhenRanFromTheClass',
3-
#superclass : #TestCase,
2+
#name : 'Bug_TestPassesWhenRanAloneButFailsWhenRanFromTheClass',
3+
#superclass : 'TestCase',
44
#instVars : [
55
'breakpointsBeforeTest'
66
],
7-
#category : #'Sindarin-Experiments'
7+
#category : 'Sindarin-Experiments',
8+
#package : 'Sindarin-Experiments'
89
}
910

10-
{ #category : #tests }
11+
{ #category : 'tests' }
1112
Bug_TestPassesWhenRanAloneButFailsWhenRanFromTheClass >> helperMethod13 [
1213
| a |
1314
a := 5.
1415
^ Point x: 5 y: '3' asInteger.
1516
]
1617

17-
{ #category : #running }
18+
{ #category : 'running' }
1819
Bug_TestPassesWhenRanAloneButFailsWhenRanFromTheClass >> runCaseManaged [
1920
"This prevents the TestExecutionEnvironment from trying to kill processes created during the test. Without it, it adds on:do: contexts on the process, and this somehow makes the process answers true to isTerminating, triggering the protection against stepping terminating processes from DebugSessionPlus>>stepInto:
2021
It is not necessary to terminate processes created by ScriptableDebugger because these processes are not scheduled."
@@ -23,20 +24,20 @@ Bug_TestPassesWhenRanAloneButFailsWhenRanFromTheClass >> runCaseManaged [
2324
^ self runCase.
2425
]
2526

26-
{ #category : #running }
27+
{ #category : 'running' }
2728
Bug_TestPassesWhenRanAloneButFailsWhenRanFromTheClass >> setUp [
2829
"Hooks that subclasses may override to define the fixture of test."
2930
breakpointsBeforeTest := VirtualBreakpoint all.
3031
VirtualBreakpoint all removeAll.
3132
]
3233

33-
{ #category : #running }
34+
{ #category : 'running' }
3435
Bug_TestPassesWhenRanAloneButFailsWhenRanFromTheClass >> tearDown [
3536
VirtualBreakpoint all removeAll.
3637
breakpointsBeforeTest do: [ :brkpt | VirtualBreakpoint all add: brkpt ].
3738
]
3839

39-
{ #category : #tests }
40+
{ #category : 'tests' }
4041
Bug_TestPassesWhenRanAloneButFailsWhenRanFromTheClass >> testStep [
4142
<haltOrBreakpointForTesting>
4243
| node scdbg |

src/Sindarin-Experiments/ExampleExecutionStackTransform1.class.st

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,30 @@ scdbg1 activateAutoRefreshOfAttachedGraphicalDebugger. scdbg2 activateAutoRefres
1212
scdbg2 refreshAttachedGraphicalDebugger
1313
"
1414
Class {
15-
#name : #ExampleExecutionStackTransform1,
16-
#superclass : #TestCase,
15+
#name : 'ExampleExecutionStackTransform1',
16+
#superclass : 'TestCase',
1717
#instVars : [
1818
'stack',
1919
'expected'
2020
],
21-
#category : #'Sindarin-Experiments'
21+
#category : 'Sindarin-Experiments',
22+
#package : 'Sindarin-Experiments'
2223
}
2324

24-
{ #category : #running }
25+
{ #category : 'running' }
2526
ExampleExecutionStackTransform1 >> setUp [
2627
stack := Stack new.
2728
stack push: $3; push: 'b'; push: $a.
2829
expected := Stack new.
2930
expected push: '3'; push: 'b'; push: 'a'.
3031
]
3132

32-
{ #category : #tests }
33+
{ #category : 'tests' }
3334
ExampleExecutionStackTransform1 >> testTransformStack [
3435
[expected isEmpty] whileFalse: [ self transformTopStack. self assert: (stack pop) equals: (expected pop) ].
3536
]
3637

37-
{ #category : #tests }
38+
{ #category : 'tests' }
3839
ExampleExecutionStackTransform1 >> transformTopStack [
3940
(stack top isInteger) ifTrue: [ stack push: (stack pop asCharacterDigit) ].
4041
(stack top isCharacter) ifTrue: [ stack push: (stack pop asString) ].

src/Sindarin-Experiments/ExampleExecutionStackTransform2.class.st

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
Class {
2-
#name : #ExampleExecutionStackTransform2,
3-
#superclass : #ExampleExecutionStackTransform1,
4-
#category : #'Sindarin-Experiments'
2+
#name : 'ExampleExecutionStackTransform2',
3+
#superclass : 'ExampleExecutionStackTransform1',
4+
#category : 'Sindarin-Experiments',
5+
#package : 'Sindarin-Experiments'
56
}
67

7-
{ #category : #running }
8+
{ #category : 'running' }
89
ExampleExecutionStackTransform2 >> setUp [
910
stack := Stack new.
1011
stack push: 3; push: 'b'; push: $a.

0 commit comments

Comments
 (0)