generated from hpi-swa-teaching/SWT-Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Luke
committed
Jun 5, 2022
1 parent
2e06a82
commit 64a03e8
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
Squello-Tests.package/SPBLabelTests.class/instance/testAsString.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,8 @@ | ||
tests | ||
testAsString | ||
|
||
| title | | ||
title := 'a fancy label'. | ||
self assert: nil equals: label asString. | ||
label title: title. | ||
self assert: title equals: label asString. |
8 changes: 8 additions & 0 deletions
8
Squello-Tests.package/SPBLabelTests.class/instance/testHash.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,8 @@ | ||
tests | ||
testHash | ||
|
||
| id | | ||
id := 123456789. | ||
self assert: 256 equals: label hash. | ||
label id: id. | ||
self assert: 123456789 equals: label hash. |
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