Skip to content

Commit

Permalink
Fix #80, setComparatorPolarity() et al.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart committed Aug 20, 2024
1 parent fd3a812 commit be3f8bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit_test_001.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ unittest(test_datarate)
for (int i = 0; i < 8; i++)
{
ADS.setDataRate(i);
assertEqual(1, ADS.getDataRate());
assertEqual(i, ADS.getDataRate());
}
// test out of range
ADS.setDataRate(8);
Expand Down Expand Up @@ -261,7 +261,7 @@ unittest(test_comparator_que_convert)
for (int i = 0; i < 4; i++)
{
ADS.setComparatorQueConvert(i);
assertEqual(1, ADS.getComparatorQueConvert());
assertEqual(i, ADS.getComparatorQueConvert());
}
// test out of range
ADS.setComparatorQueConvert(4);
Expand Down

0 comments on commit be3f8bc

Please sign in to comment.