Skip to content

Commit

Permalink
Added unit test for ToDoWithIncrement
Browse files Browse the repository at this point in the history
  • Loading branch information
leogeier committed May 31, 2018
1 parent 7b91578 commit 283df32
Show file tree
Hide file tree
Showing 10 changed files with 84 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
testing
testToDoWithIncrement

self
test: #smallLintToDoWithIncrement
on: {SLTestToDoWithIncrement01}
expectedResults: {4}.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"testTestToDo" : "LG 5/31/2018 10:15",
"testThreeElementPoint" : "LG 5/31/2018 09:48",
"testToDo" : "LG 5/31/2018 11:33",
"testToDoWithIncrement" : "LG 5/31/2018 12:01",
"testUnclassifiedMethods" : "fm 5/25/2018 08:26",
"testUncommonMessageSend" : "fm 5/25/2018 08:52",
"testUndeclaredReferenceRule" : "BD 5/25/2018 14:17",
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
as yet unclassified
doNothing
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.]
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.]
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.]
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.]
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" } }
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" }

0 comments on commit 283df32

Please sign in to comment.