Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The tests would read much nicer if you used a pseudo-theory #5

Closed
janhohenheim opened this issue May 25, 2023 · 0 comments
Closed

The tests would read much nicer if you used a pseudo-theory #5

janhohenheim opened this issue May 25, 2023 · 0 comments

Comments

@janhohenheim
Copy link
Sponsor

mod tests {

something like

for (expected, input) in [("⁰", 0), ...] {
	assert_eq!(expected, format!("{}", Superscript(input)));
}

Note thatt this does not apply to the formats involving formatting flags since you cannot (AFAIK) parametrize them

@bash bash closed this as completed in fb629fd May 25, 2023
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

No branches or pull requests

1 participant