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

G-8: Provide generic vector assert to support all Godot vector types #45

Merged
merged 2 commits into from
Feb 29, 2024

Conversation

MikeSchulze
Copy link
Owner

@MikeSchulze MikeSchulze commented Feb 25, 2024

Why

We want to have one assert for all Godot vector types, actual we have only covered Vector2 and Vector3

What

  • Removed the interfaces and implementations for Vector2 and Vector3
  • Introduced IVectorAssert and implementation
  • make the old asserts as deprecated.
  • removed the custom float and vector format
  • set explicit the culture to "en-us" to get expected failure messages in english notation
  • fix test name generation to use culture to "en-us" for parameter formattings

# Why
We want to have one assert for all Godot vector types, actual we have only covered Vector2 and Vector3

# What
- Removed the interfaces and implementations for Vector2 and Vector3
- Introduced IVectorAssert<T> and implementation
- make the old asserts as deprecated.
- removed the custom float and vector format
- set explicit the culture to "en-us" to get expected failure messages in english notation
- fix test name generation to use culture to "en-us" for parameter formattings
@MikeSchulze MikeSchulze changed the title G-8: Provide generic vector assert G-8: Provide generic vector assert to support all Godot vector types Feb 29, 2024
@MikeSchulze MikeSchulze merged commit 531cc40 into master Feb 29, 2024
@MikeSchulze MikeSchulze deleted the GD-8 branch February 29, 2024 17:12
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.

GD-8: Replace Vector2Assert and Vector3Assert by generic VectorAssert<T>
1 participant