-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added unit test for ToDoWithIncrement
- Loading branch information
Showing
10 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
packages/SwaLint-Tests.package/SLSmallLintPlugInTest.class/instance/testToDoWithIncrement.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
testing | ||
testToDoWithIncrement | ||
|
||
self | ||
test: #smallLintToDoWithIncrement | ||
on: {SLTestToDoWithIncrement01} | ||
expectedResults: {4}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
2 changes: 2 additions & 0 deletions
2
packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/doNothing.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
as yet unclassified | ||
doNothing |
10 changes: 10 additions & 0 deletions
10
packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/method1.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
as yet unclassified | ||
method1 | ||
|
||
| count | | ||
count := 0. | ||
|
||
1 to: 10 do: [:each | | ||
self doNothing. | ||
count := count + 1. | ||
self doNothing.] |
15 changes: 15 additions & 0 deletions
15
packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/method2.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
as yet unclassified | ||
method2 | ||
|
||
| count i j k | | ||
count := 0. | ||
|
||
i := 1. | ||
j := 10. | ||
k := 2. | ||
|
||
i to: j by: k do: [:each || temp | | ||
temp := 1. | ||
self doNothing. | ||
count := count + k. | ||
self doNothing.] |
11 changes: 11 additions & 0 deletions
11
packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/method3.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
as yet unclassified | ||
method3 | ||
|
||
| count | | ||
count := 0. | ||
|
||
1 to: 10 do: [:each || temp | | ||
temp := 1. | ||
self doNothing. | ||
count := count - 1. | ||
self doNothing.] |
15 changes: 15 additions & 0 deletions
15
packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/method4.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
as yet unclassified | ||
method4 | ||
|
||
| count i j k | | ||
count := 0. | ||
|
||
i := 1. | ||
j := 10. | ||
k := 2. | ||
|
||
i to: j by: k do: [:each || temp | | ||
temp := 1. | ||
self doNothing. | ||
count := count - k. | ||
self doNothing.] |
9 changes: 9 additions & 0 deletions
9
packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"doNothing" : "LG 5/31/2018 11:44", | ||
"method1" : "LG 5/31/2018 12:01", | ||
"method2" : "LG 5/31/2018 11:46", | ||
"method3" : "LG 5/31/2018 11:47", | ||
"method4" : "LG 5/31/2018 11:47" } } |
14 changes: 14 additions & 0 deletions
14
packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"category" : "SwaLint-Tests-Data", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "SLTestToDoWithIncrement01", | ||
"pools" : [ | ||
], | ||
"super" : "Object", | ||
"type" : "normal" } |