Skip to content

Fix checkCaption#1092

Open
AntoineUsal wants to merge 10 commits into
pillar-markup:devfrom
AntoineUsal:MicEmptyCaptionChecker
Open

Fix checkCaption#1092
AntoineUsal wants to merge 10 commits into
pillar-markup:devfrom
AntoineUsal:MicEmptyCaptionChecker

Conversation

@AntoineUsal

Copy link
Copy Markdown
Collaborator

Fix #1090

@AntoineUsal AntoineUsal requested a review from Ducasse May 27, 2026 08:51
@Ducasse

Ducasse commented May 27, 2026

Copy link
Copy Markdown
Contributor

Can you add a test that shows the effect of the cjhanges. I was wondering if we need figure: because we have micElement:

@Ducasse

Ducasse commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Hi antoine did you check the configureFrom: and the explanationForConfiguration logic too?

@Ducasse Ducasse closed this Jun 1, 2026
@Ducasse

Ducasse commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Now the tests should all pass.

@Ducasse Ducasse reopened this Jun 1, 2026
@Ducasse

Ducasse commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Nearly there

  • did you check the configureFrom: and the explanationForConfiguration logic too?

@Ducasse

Ducasse commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

@AntoineUsal Hi antoine did you check the configureFrom: and the explanationForConfiguration logic too?

@AntoineUsal

Copy link
Copy Markdown
Collaborator Author

I added testConfigureFrom and testExplanationForConfiguration in my latest commits

]

{ #category : 'tests' }
MicFigureEmptyCaptionCheckerTest >> testExplanationForConfiguration [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not enough we should have a real check. else 'a' can be a valid explanation.
Check the other tests for the configuration in the system to see how this is usually done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MicMissingFigureCaptionResult is too abstract

2 participants