Skip to content

Commit

Permalink
add tests for scientific notation
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-oliver-canada committed Feb 23, 2024
1 parent d7b6128 commit ea885cd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/ldf/lin_encoders.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ Signal_encoding_types {
physical_value, 1, 63, 0.0625, 7.0, "Volt";
physical_value, 64, 191, 0.0104, 11.0, "Volt";
physical_value, 192, 253, 0.0625, 13.0, "Volt";
physical_value, 0, 5.678e-04, 0.0625, 4, "Volt";
physical_value, 0, 7.654E-02, 0.01, 9, "Volt";
physical_value, 0, 3.778e02, 0.05, 12, "Volt";
physical_value, 0, 1.222E09, 1, 0, "Volt";
physical_value, 0, 3.5E+02, 0.5, 5, "Volt";
logical_value, 254, "over voltage";
logical_value, 255, "invalid";
}
Expand Down Expand Up @@ -100,6 +95,13 @@ Signal_encoding_types {
BCDEncoding {
bcd_value;
}
ScientificEncoding {
physical_value, 0, 255, 5.6785558246e-04, 0, "Ohm";
physical_value, 0, 255, 7.654E-02, 0, "Ohm";
physical_value, 0, 1024, 3.778e02, 0, "Ohm";
physical_value, 0, 1024, 1.222E09, 0, "Ohm";
physical_value, 0, 65535, 3.5E+02, 5, "Ohm";
}
}

Signal_representation {
Expand Down

0 comments on commit ea885cd

Please sign in to comment.