X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=test%2Funit%2Fopdtok%2Fopdtok.c;fp=test%2Funit%2Fopdtok%2Fopdtok.c;h=0000000000000000000000000000000000000000;hp=bad4603d221ee29618f56b88b512459575e5c3f6;hb=95b87bd10068d4f0f65912a7678d0aba8463724c;hpb=c5e30b2f26ebc174c49c52c67121f3be81b5bd43 diff --git a/test/unit/opdtok/opdtok.c b/test/unit/opdtok/opdtok.c deleted file mode 100644 index bad4603..0000000 --- a/test/unit/opdtok/opdtok.c +++ /dev/null @@ -1,33 +0,0 @@ -#include "casl2.h" -#include "assemble.h" - -int main(){ - int i, j; - OPD *opd; - char *str[] = { - "", "GR0,GR1", "GR0,A", "GR1,12", "GR0,0,GR1", - "\'aaa\',0", "\'aaa\',\'bbb\'", "\'aaa\'\',\'\'bbb\'", "\'aaa,bbb\'", - "1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0", - "1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1", - "\'1234567890123456789012345678901234567890\'", - "\'12345678901234567890123456789012345678901\'", - }; - - cerr = malloc_chk(sizeof(CERR), "cerr"); /* エラーの初期化 */ - addcerrlist_assemble(); - for(i = 0; i < ARRAYSIZE(str); i++) { - cerr->num = 0; - printf("%s\n", str[i]); - opd = opdtok(str[i]); - printf("OPDC:%d\n", opd->opdc); - for(j = 0; j < opd->opdc; j++) { - printf("OPDC[%d]:%s\n", j, opd->opdv[j]); - } - if(cerr->num > 0){ - printf("Error - %d: %s\n", cerr->num, cerr->msg); - } - printf("\n"); - } - freecerr(); - return 0; -}