The record is the text of the repair. The Results table is the last run of the row.
FairyTaleTest>>testInitialize compares the year of a new object
with the fixed value 2025. FairyTale>>initialize uses the year of
today. The test passed only in 2025.fixes/neanasteisha-pharotales-books.st): the test compares with
Date today year, as the test testYearLimits of the same class does.Load the package into a Pharo 14 image (build 791) with the load expression of the test run, file in the fixes file of the row if there is one, and run the test classes of the package.
"row 144" Metacello new baseline: 'Pharotales_Books'; repository: 'github://neAnasteisha/Pharotales_Books:master/src'; onConflict: [:e | e useIncoming]; load.
Last result of the package run (stock Cog and iospharo on the same image).
| Row | Label | Load | Stock Cog | iospharo VM |
|---|---|---|---|---|
| 144 | neanasteisha-pharotales-books | ok | tests=22 P=22 F=0 E=0 S=0 T=0 X=0 | tests=22 P=22 F=0 E=0 S=0 T=0 X=0 |
"Pharotales_Books: FairyTaleTest>>testInitialize compared the publication year of a new FairyTale with the fixed number 2025. FairyTale>>initialize sets publicationYear to Date today year, so the test passed only in 2025 and fails in every other year. The repair compares with Date today year, the value that the code under test uses. The test still checks that a new FairyTale has the current year and empty author, title and publisher." fix value: #FairyTaleTest value: #testInitialize value: [ :source | source includesSubstring: '2025' ] value: 'testInitialize | tale | tale := FairyTale new. self assert: tale author equals: ''''. self assert: tale title equals: ''''. self assert: tale publisher equals: ''''. self assert: tale publicationYear equals: Date today year'.
State of 2026-11-20. Made from the test records of the iospharo project (a second Pharo VM). The fixes are proposals for review.