Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 3ac96fe

Browse files
committed
Updated unit tests.
1 parent 7bc5923 commit 3ac96fe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/PDS_parse_string.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ int main()
3939
check((parser.current-2) == parser.scalar.text.last);
4040
}
4141
}
42+
4243
return EXIT_SUCCESS;
4344
}

test/PDS_skip_whitespaces.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ int main()
1515
begin_test_data(expected_t)
1616
test_data( "nothing to skip!", 0, test_pair(1,1), PDS_OK ),
1717
test_data( "\t \r\n end", 8, test_pair(1,2), PDS_OK ),
18+
test_data( " /***/end", 6, test_pair(1,1), PDS_OK ),
1819
test_data( "/**/ end", 5, test_pair(1,1), PDS_OK ),
1920
test_data( "/* a\tlonger\tcomment */\t\r\n\r\nend", 27, test_pair(1,3), PDS_OK ),
2021
test_data(" \t/*line 1 */\n \t\t/*line 2*/\n \t\t\t/*line 3*/\nend", 44, test_pair(1,4), PDS_OK ),
@@ -40,7 +41,6 @@ int main()
4041
parser.last = parser.first + strlen(parser.first) - 1;
4142
parser.status = PDS_OK;
4243
int ret;
43-
4444
ret = PDS_skip_whitespaces(&parser);
4545
check(test_status(i) == parser.status);
4646
check(test_end(i) == parser.current);

0 commit comments

Comments
 (0)