From 64a03e8aa9da3dc3c441c285108840059c6c553c Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 5 Jun 2022 15:29:10 +0200 Subject: [PATCH] add some tests --- .../SPBLabelTests.class/instance/testAsString.st | 8 ++++++++ .../SPBLabelTests.class/instance/testHash.st | 8 ++++++++ .../SPBLabelTests.class/methodProperties.json | 2 ++ 3 files changed, 18 insertions(+) create mode 100644 Squello-Tests.package/SPBLabelTests.class/instance/testAsString.st create mode 100644 Squello-Tests.package/SPBLabelTests.class/instance/testHash.st diff --git a/Squello-Tests.package/SPBLabelTests.class/instance/testAsString.st b/Squello-Tests.package/SPBLabelTests.class/instance/testAsString.st new file mode 100644 index 00000000..4d7fe039 --- /dev/null +++ b/Squello-Tests.package/SPBLabelTests.class/instance/testAsString.st @@ -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. \ No newline at end of file diff --git a/Squello-Tests.package/SPBLabelTests.class/instance/testHash.st b/Squello-Tests.package/SPBLabelTests.class/instance/testHash.st new file mode 100644 index 00000000..8c0eb89c --- /dev/null +++ b/Squello-Tests.package/SPBLabelTests.class/instance/testHash.st @@ -0,0 +1,8 @@ +tests +testHash + + | id | + id := 123456789. + self assert: 256 equals: label hash. + label id: id. + self assert: 123456789 equals: label hash. \ No newline at end of file diff --git a/Squello-Tests.package/SPBLabelTests.class/methodProperties.json b/Squello-Tests.package/SPBLabelTests.class/methodProperties.json index 4d71fd43..a6f943ff 100644 --- a/Squello-Tests.package/SPBLabelTests.class/methodProperties.json +++ b/Squello-Tests.package/SPBLabelTests.class/methodProperties.json @@ -4,8 +4,10 @@ "instance" : { "setUp" : "lo 5/23/2022 16:51", "tearDown" : "lo 5/23/2022 16:51", + "testAsString" : "lo 6/5/2022 15:22", "testColor" : "lo 5/23/2022 16:53", "testDescription" : "lo 5/23/2022 16:57", + "testHash" : "lo 6/5/2022 15:24", "testId" : "lo 5/23/2022 16:55", "testJsonWriteOn" : "lo 5/23/2022 17:24", "testTitle" : "lo 5/23/2022 16:56" } }