From 48e36b89006d531718183e71a61bd9e7cb59ae33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phaneDucasse?= Date: Thu, 12 Sep 2024 11:04:28 +0200 Subject: [PATCH] Fixing broken tests of the Ston export format. --- src/Microdown-BookTester/MicReferenceChecker.class.st | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Microdown-BookTester/MicReferenceChecker.class.st b/src/Microdown-BookTester/MicReferenceChecker.class.st index 9b2aa73b..4cd0b3ee 100644 --- a/src/Microdown-BookTester/MicReferenceChecker.class.st +++ b/src/Microdown-BookTester/MicReferenceChecker.class.st @@ -156,7 +156,10 @@ MicReferenceChecker >> initialize [ results := OrderedCollection new. references := OrderedCollection new. anchors := OrderedCollection new. - duplicatedAnchors := OrderedCollection new + duplicatedAnchors := OrderedCollection new. + "by default if the reporter is not set from outside + then it shares the results of this current checker." + reportWriter := MicAnalysisReportWriter new results: results. ] { #category : 'testing' } @@ -180,6 +183,11 @@ MicReferenceChecker >> report [ ^ reportWriter report ] +{ #category : 'reporting' } +MicReferenceChecker >> reportSTONFormat [ + ^ reportWriter reportSTONFormat +] + { #category : 'accessing' } MicReferenceChecker >> reportWriter [