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

Test macro for numeric precision and scale #262

Open
samousavih opened this issue Jun 5, 2023 · 1 comment
Open

Test macro for numeric precision and scale #262

samousavih opened this issue Jun 5, 2023 · 1 comment

Comments

@samousavih
Copy link

samousavih commented Jun 5, 2023

Is your feature request related to a problem? Please describe.
This package allows asserting column types by "expect_column_values_to_be_of_type". However, it doesn't include precision and scale when it comes to numeric types.

Describe the solution you'd like
Adding a new macro which can assert numeric types with precision and scale as parameters.

Describe alternatives you've considered
No alternative

Additional context
I have implemented this in my own project as I need to assert numeric types accurately.

@samousavih samousavih changed the title [Feature Request] Test macro for numeric precision and scale Jun 7, 2023
@ppsplus-djm
Copy link

The same should also exist for varchar sizes in order to test that a column size didn't accidentally shrink.

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

2 participants