diff options
Diffstat (limited to 'tests/Test_encoding.c')
-rw-r--r-- | tests/Test_encoding.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/Test_encoding.c b/tests/Test_encoding.c index 7d3266c..e693ed7 100644 --- a/tests/Test_encoding.c +++ b/tests/Test_encoding.c @@ -109,6 +109,30 @@ main (int argc, char *argv[]) exit (1); } + result = asn1_write_value (asn1_element, "a", "string1", 7); + if (result != ASN1_SUCCESS) + { + fprintf (stderr, "asn1_write_value(): str "); + asn1_perror (result); + exit (1); + } + + result = asn1_write_value (asn1_element, "b", "string2", 7); + if (result != ASN1_SUCCESS) + { + fprintf (stderr, "asn1_write_value(): str "); + asn1_perror (result); + exit (1); + } + + result = asn1_write_value (asn1_element, "c", "string3", 7); + if (result != ASN1_SUCCESS) + { + fprintf (stderr, "asn1_write_value(): str "); + asn1_perror (result); + exit (1); + } + /* Clear the definition structures */ asn1_delete_structure (&definitions); |