-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
enhancement(remap): Add assert_eq! function #7866
Conversation
Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet. This will definitely be useful in unit-testing.
lib/vrl/stdlib/benches/benches.rs
Outdated
@@ -10,6 +10,7 @@ criterion_group!( | |||
// https://github.com/timberio/vector/pull/6408 | |||
config = Criterion::default().noise_threshold(0.05); | |||
targets = assert, | |||
assert_eq, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert_eq, | |
assert_eq, |
Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
Just a small note, we forgot to add docs here which is being covered in #8265 |
Doh, yep. Thanks @lucperkins |
This PR adds an
assert_eq!
function with the goal of making writingunit tests easier.
The output may change with
#6261 to make it easier to see
the condition that failed.
Closes #7833
Signed-off-by: Jesse Szwedko jesse@szwedko.me