utilitylibraries/libutils/tsrc/src/test_wstringtorbuf16_negative.cpp
branchGCC_SURGE
changeset 45 4b03adbd26ca
parent 22 ddc455616bd6
parent 34 5fae379060a7
equal deleted inserted replaced
42:a16d1cd191f6 45:4b03adbd26ca
    23 int main()
    23 int main()
    24 {
    24 {
    25     wstring str;
    25     wstring str;
    26     __UHEAP_MARK;
    26     __UHEAP_MARK;
    27     RBuf16 buf;
    27     RBuf16 buf;
       
    28     buf.CreateL(30);
    28     int retval =ESuccess;
    29     int retval =ESuccess;
    29     retval = WstringToRbuf16(str, buf);
    30     retval = WstringToRbuf16(str, buf);
    30 
    31 
    31     if (retval ==EStringNoData)
    32     if (retval ==EStringNoData)
    32     {
    33     {
    35     else
    36     else
    36     {
    37     {
    37     assert_failed = true;
    38     assert_failed = true;
    38     printf("wstringtorbuf16 Failed");
    39     printf("wstringtorbuf16 Failed");
    39     }	
    40     }	
       
    41     buf.Close();
    40     __UHEAP_MARKEND;
    42     __UHEAP_MARKEND;
    41     testResultXml("test_wstringtorbuf16_negative");
    43     testResultXml("test_wstringtorbuf16_negative");
    42 	return 0;
    44 	return 0;
    43 }
    45 }