X Tutup
Skip to content

Commit ea2d954

Browse files
author
Johan Brichau
committed
Added an additional test for GRNotificationBasedDynamicVariable to test the defaultValue behavior
1 parent 8919d11 commit ea2d954

File tree

9 files changed

+35
-7
lines changed

9 files changed

+35
-7
lines changed

repository/Grease-Tests-Core.package/GRDynamicVariableTest.class/instance/testDefaultValue.st

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ testDefaultValue
55
GRTestDynamicVariable
66
use: 'my value'
77
during: [ ].
8-
self assert: GRTestDynamicVariable value = 'default test value' description:'The default value is no longer correct'.
9-
8+
self assert: GRTestDynamicVariable value = 'default test value' description:'The default value is no longer correct'

repository/Grease-Tests-Core.package/GRDynamicVariableTest.class/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"testWithoutValue" : "MaxLeske 5/18/2017 07:42",
44
"testAnswer" : "MaxLeske 5/18/2017 07:42",
55
"testWithNestedValue" : "MaxLeske 5/18/2017 07:42",
6-
"testDefaultValue" : "JohanBrichau 9/8/2017 09:53",
6+
"testDefaultValue" : "JohanBrichau 9/9/2017 11:09",
77
"testWithValue" : "MaxLeske 5/18/2017 07:42"
88
},
99
"class" : { }
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
tests
2+
testDefaultValue
3+
self assert: GRTestNotificationBasedDynamicVariable value = 'default test value'.
4+
5+
GRTestNotificationBasedDynamicVariable
6+
use: 'my value'
7+
during: [ ].
8+
self assert: GRTestNotificationBasedDynamicVariable value = 'default test value' description:'The default value is no longer correct'
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"instance" : {
3-
"testWithValue" : "pmm 9/5/2017 14:39",
4-
"testWithoutValue" : "pmm 9/5/2017 14:39",
3+
"testWithoutValue" : "JohanBrichau 9/9/2017 10:52",
4+
"testAnswer" : "JohanBrichau 9/9/2017 10:52",
55
"testWithNestedValue" : "pmm 9/5/2017 14:38",
6-
"testAnswer" : "pmm 9/5/2017 14:37"
6+
"testDefaultValue" : "JohanBrichau 9/9/2017 11:10",
7+
"testWithValue" : "JohanBrichau 9/9/2017 10:52"
78
},
89
"class" : { }
910
}

repository/Grease-Tests-Core.package/GRTestNotificationBasedDynamicVariable.class/README.md

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
defaults
2+
defaultValue
3+
^ 'default test value'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"instance" : { },
3+
"class" : {
4+
"defaultValue" : "JohanBrichau 9/9/2017 11:11"
5+
}
6+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"commentStamp" : "",
3+
"super" : "GRNotificationBasedDynamicVariable",
4+
"category" : "Grease-Tests-Core",
5+
"classinstvars" : [ ],
6+
"pools" : [ ],
7+
"classvars" : [ ],
8+
"instvars" : [ ],
9+
"name" : "GRTestNotificationBasedDynamicVariable",
10+
"type" : "normal"
11+
}

repository/Grease-Tests-Core.package/monticello.meta/version

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
X Tutup