Skip to content

Commit

Permalink
add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
cpctaylo committed Aug 2, 2024
1 parent e146804 commit ee7bb0e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions testing/can-messages/tests/all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use can_messages::{
Amet, Bar, BarThree, CanError, Foo, LargerIntsWithOffsets, MultiplexTest,
MultiplexTestMultiplexorIndex, MultiplexTestMultiplexorM0, NegativeFactorTest,
NoMinMax
};

#[test]
Expand All @@ -20,6 +21,12 @@ fn check_range_value_valid() {
assert!(result.is_ok());
}

#[test]
fn check_min_max_zero_disables_range_check() {
let result = NoMinMax::new(10);
assert!(result.is_ok(), "This should be valid. The min and max are 0 in the DBC which disables range checking.");
}

#[test]
fn check_min_max_values() {
// min/max copy-pasted from example.dbc:
Expand Down

0 comments on commit ee7bb0e

Please sign in to comment.