Skip to content

handle the {index} parameter like a native MessageFormat argument.#969

Closed
melchisedek wants to merge 7 commits intojunit-team:mainfrom
melchisedek:master
Closed

handle the {index} parameter like a native MessageFormat argument.#969
melchisedek wants to merge 7 commits intojunit-team:mainfrom
melchisedek:master

Conversation

@melchisedek
Copy link

For example that allows to specified leading zero by using
{index,number,0000}

For example that allows to specified leading zero by using
{index,number,0000}
Copy link
Member

Choose a reason for hiding this comment

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

Could you extract a constant for this Pattern?

@kcooney
Copy link
Member

kcooney commented Jul 31, 2014

Please add some tests for this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please use "0" instead of 0, because it is clearer.

melchisedek added 3 commits July 31, 2014 23:53
* extract a constant for this Pattern
* use while loop (replace and not replaceall)
* use "0" instead of 0
Copy link
Member

Choose a reason for hiding this comment

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

I meant create a constant for the Pattern. Compiling a pattern isn't cheap

@avandeursen
Copy link
Contributor

Looks like an interesting addition.

This also requires adjusting the documentation.

I would suggest adding an extra paragraph (after line 75 in the changed file) giving a number of insightful and compelling examples on how to make good use of this new feature.

@adrianosimoes
Copy link

Should the conflicts be fixed, or maybe it's too late and we should just close this pull request?

@marcphilipp marcphilipp changed the base branch from master to main June 21, 2020 17:05
@junit-builds
Copy link
Contributor

JUnit 4 is now in maintenance mode.

At this point, only critical bugs and security issues will be fixed.

The team has therefore decided to close this PR.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants