From 6600ae820a9c6b42ebf88d78b95250ba6f526874 Mon Sep 17 00:00:00 2001 From: Christoph Thiede Date: Fri, 20 Dec 2024 03:33:06 +0100 Subject: [PATCH] browser: disable assertions when debug mode is off --- .../SL2TestMapper.class/instance/assert.description..st | 5 +++++ .../SL2TestMapper.class/methodProperties.json | 1 + 2 files changed, 6 insertions(+) create mode 100644 packages/SwaLintBrowser.package/SL2TestMapper.class/instance/assert.description..st diff --git a/packages/SwaLintBrowser.package/SL2TestMapper.class/instance/assert.description..st b/packages/SwaLintBrowser.package/SL2TestMapper.class/instance/assert.description..st new file mode 100644 index 0000000..34a329c --- /dev/null +++ b/packages/SwaLintBrowser.package/SL2TestMapper.class/instance/assert.description..st @@ -0,0 +1,5 @@ +error handling +assert: aBlock description: aStringOrBlock + + SwaLint debug ifFalse: [^ self]. + ^ super assert: aBlock description: aStringOrBlock \ No newline at end of file diff --git a/packages/SwaLintBrowser.package/SL2TestMapper.class/methodProperties.json b/packages/SwaLintBrowser.package/SL2TestMapper.class/methodProperties.json index 96b0584..732ad1d 100644 --- a/packages/SwaLintBrowser.package/SL2TestMapper.class/methodProperties.json +++ b/packages/SwaLintBrowser.package/SL2TestMapper.class/methodProperties.json @@ -2,6 +2,7 @@ "class" : { "mapTestsFrom:" : "ct 12/12/2024 04:14" }, "instance" : { + "assert:description:" : "ct 12/20/2024 03:32", "basicMakeTestFrom:" : "ct 12/18/2024 00:01", "buildCategoryTree:" : "ct 12/18/2024 22:03", "buildTest:" : "ct 12/18/2024 00:02",