Implement missing data types for calendar and schedule (#474)
* Added the SpecialEvent struct for the Exception_Schedule property of Schedule, encode/decode/same functions, unit tests, and integrated into bacapp functions. * Added the CalendarEntry struct for the Date_List property of Calendar and the SpecialEvent struct, encode/decode functions, unit tests, and integrated into bacapp functions. * Added the DateRange struct for the Effective_Period property of Schedule, encode/decode functions, unit tests, and integrated into bacapp functions. --------- Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
/* @file
|
||||
* @brief test BACnet real value encode/decode APIs
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include <bacnet/bacreal.h>
|
||||
#include <bacnet/bacdef.h>
|
||||
@@ -34,7 +34,7 @@ static void testBACreal(void)
|
||||
zassert_equal(len, 4, NULL);
|
||||
test_len = decode_real(&apdu[0], &test_real_value);
|
||||
zassert_equal(test_len, len, NULL);
|
||||
zassert_equal(test_real_value, real_value, NULL);
|
||||
zassert_false(islessgreater(test_real_value, real_value), NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -54,7 +54,7 @@ static void testBACdouble(void)
|
||||
zassert_equal(len, 8, NULL);
|
||||
test_len = decode_double(&apdu[0], &test_double_value);
|
||||
zassert_equal(test_len, len, NULL);
|
||||
zassert_equal(test_double_value, double_value, NULL);
|
||||
zassert_false(islessgreater(test_double_value, double_value), NULL);
|
||||
}
|
||||
/**
|
||||
* @}
|
||||
|
||||
Reference in New Issue
Block a user