Fixed test for PrivateTransfer service to be more accurate, and added Octet String to bacapp supplementary functions.

This commit is contained in:
skarg
2009-03-27 18:18:53 +00:00
parent dff62808bd
commit 32f08d9386
3 changed files with 87 additions and 38 deletions
+13
View File
@@ -1047,6 +1047,13 @@ bool bacapp_same_value(
&test_value->type.Character_String);
break;
#endif
#if defined (BACAPP_OCTET_STRING)
case BACNET_APPLICATION_TAG_OCTET_STRING:
status =
octetstring_value_same(&value->type.Octet_String,
&test_value->type.Octet_String);
break;
#endif
#if defined (BACAPP_BIT_STRING)
case BACNET_APPLICATION_TAG_BIT_STRING:
default:
@@ -1412,6 +1419,12 @@ void testBACnetApplicationData(
ct_test(pTest, status == true);
ct_test(pTest, testBACnetApplicationDataValue(&value));
status =
bacapp_parse_application_data(BACNET_APPLICATION_TAG_OCTET_STRING,
"Steve + Patricia", &value);
ct_test(pTest, status == true);
ct_test(pTest, testBACnetApplicationDataValue(&value));
return;
}