We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cec2eb commit 01bcd8dCopy full SHA for 01bcd8d
1 file changed
Famix-Simple-Diff/FamixSimpleDifferenceTest.class.st
@@ -74,3 +74,15 @@ FamixSimpleDifferenceTest >> testNullValues [
74
self assert: nullPattern mooseName equals: 'Nothing'.
75
self assert: nullPattern printString equals: 'Nothing'.
76
]
77
+
78
+{ #category : 'accessing' }
79
+FamixSimpleDifferenceTest >> testPrintOn [
80
+ | additionDiff output expectedString |
81
82
+ additionDiff := FamixSimpleDifference createEntityAdded: 'Entity' actualValue: 'Actual'.
83
+ output := additionDiff printString.
84
+ expectedString := 'a FamixSimpleDifferenceEntityAddition(''Entity Addition'' -> Expected: Nothing | Actual: ''Actual'' | On: ''Entity'')'.
85
86
+ "strings should be equals"
87
+ self assert: output equals: expectedString.
88
+]
0 commit comments