Pharo test defects

Package: Pharotales_Books (neAnasteisha/Pharotales_Books, row 144)

State
Fixed (package repair)
Defect in
see the record
Tests
0
Fix
neanasteisha-pharotales-books.st
Upstream repository
neAnasteisha/Pharotales_Books

The record is the text of the repair. The Results table is the last run of the row.

Record

Test

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.

Results

Last result of the package run (stock Cog and iospharo on the same image).

RowLabelLoadStock Cogiospharo VM
144neanasteisha-pharotales-booksoktests=22 P=22 F=0 E=0 S=0 T=0 X=0tests=22 P=22 F=0 E=0 S=0 T=0 X=0

Fix

Fixes file (filed in after the load): neanasteisha-pharotales-books.st (download)
"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.