rem: assert(ICAL_TIME_VALUE == icalparameter_value_to_value_kind(ICAL_VALUE_TIME));
context: void test_values(){    icalvalue *v;     icalvalue *copy;     v = icalvalue_new_caladdress("cap://value/1");    printf("caladdress 1: %s\n",icalvalue_get_caladdress(v));    icalvalue_set_caladdress(v,"cap://value/2");    printf("caladdress 2: %s\n",icalvalue_get_caladdress(v));    printf("String: %s\n",icalvalue_as_ical_string(v));        copy = icalvalue_new_clone(v);    printf("Clone: %s\n",icalvalue_as_ical_string(v));    icalvalue_free(v);    icalvalue_free(copy);    v = icalvalue_new_boolean(1);    printf("caladdress 1: %d\n",icalvalue_get_boolean(v));    icalvalue_set_boolean(v,2);    printf("caladdress 2: %d\n",icalvalue_get_boolean(v));    printf("String: %s\n",icalvalue_as_ical_string(v));    copy = icalvalue_new_clone(v);    printf("Clone: %s\n",icalvalue_as_ical_string(v));    icalvalue_free(v);    icalvalue_free(copy);    v = icalvalue_new_date(icaltime_from_timet( time(0),0));    printf("date 1: %s\n",icalvalue_as_ical_string(v));    icalvalue_set_date(v,icaltime_from_timet( time(0)+3600,0));    printf("date 2: %s\n",icalvalue_as_ical_string(v));    copy = icalvalue_new_clone(v);    printf("Clone: %s\n",icalvalue_as_ical_string(v));    icalvalue_free(v);    icalvalue_free(copy);    v = icalvalue_new(-1);    printf("Invalid type: %p\n",v);    if (v!=0) icalvalue_free(v);    assert(ICAL_BOOLEAN_VALUE ==            icalparameter_value_to_value_kind(ICAL_VALUE_BOOLEAN));    assert(ICAL_UTCOFFSET_VALUE ==            icalparameter_value_to_value_kind(ICAL_VALUE_UTCOFFSET));    assert(ICAL_RECUR_VALUE ==            icalparameter_value_to_value_kind(ICAL_VALUE_RECUR));    assert(ICAL_CALADDRESS_VALUE ==            icalparameter_value_to_value_kind(ICAL_VALUE_CALADDRESS));    assert(ICAL_PERIOD_VALUE ==            icalparameter_value_to_value_kind(ICAL_VALUE_PERIOD));    assert(ICAL_BINARY_VALUE ==            icalparameter_value_to_value_kind(ICAL_VALUE_BINARY));    assert(ICAL_TEXT_VALUE ==            icalparameter_value_to_value_kind(ICAL_VALUE_TEXT));    assert(ICAL_DURATION_VALUE ==            icalparameter_value_to_value_kind(ICAL_VALUE_DURATION));    assert(ICAL_INTEGER_VALUE == icalparameter_value_to_value_kind(ICAL_VALUE_INTEGER));    assert(ICAL_TIME_VALUE ==            icalparameter_value_to_value_kind(ICAL_VALUE_TIME));    assert(ICAL_URI_VALUE ==            icalparameter_value_to_value_kind(ICAL_VALUE_URI));    assert(ICAL_FLOAT_VALUE ==            icalparameter_value_to_value_kind(ICAL_VALUE_FLOAT));    assert(ICAL_X_VALUE ==            icalparameter_value_to_value_kind(ICAL_VALUE_X));    assert(ICAL_DATETIME_VALUE ==            icalparameter_value_to_value_kind(ICAL_VALUE_DATETIME));    assert(ICAL_DATE_VALUE ==            icalparameter_value_to_value_kind(ICAL_VALUE_DATE));    /*    v = icalvalue_new_caladdress(0);    printf("Bad string: %p\n",v);    if (v!=0) icalvalue_free(v); */}