X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=test%2Funit%2Fopdtok%2Fopdtok.c;h=d65a42016427cc7f00745fedfad436a0164a15cd;hp=dc5021e886b14399f3d881d464d5a433a6d6c2e6;hb=1f490c5ea15d073c9ec918b78a5e6117a0a8bd3e;hpb=534506a757688db300328b7141bab4d6d0bd4e29 diff --git a/test/unit/opdtok/opdtok.c b/test/unit/opdtok/opdtok.c index dc5021e..d65a420 100644 --- a/test/unit/opdtok/opdtok.c +++ b/test/unit/opdtok/opdtok.c @@ -7,12 +7,12 @@ int main(){ char *str[] = { "", "GR0,GR1", "GR0,A", "GR1,12", "GR0,0,GR1", "\'aaa\',0", "\'aaa\',\'bbb\'", "\'aaa\'\',\'\'bbb\'", "\'aaa,bbb\'", - "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,2,3,4,5,6,7,8,9,0", - "\'01234567890123456789012345678901234567\'", - "\'012345678901234567890123456789012345678\'" + "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\'", }; - for(i = 0; i < sizeof str / sizeof str[0]; i++) { + for(i = 0; i < ARRAYSIZE(str); i++) { printf("%s\n", str[i]); opd = opdtok(str[i]); printf("OPDC:%d\n", opd->opdc); @@ -23,7 +23,7 @@ int main(){ printf("Error - %d: %s\n", cerrno, cerrmsg); freecerr(); } - printf("\n"); + printf("\n"); } return 0; }