Fix bug in test case 6

This commit is contained in:
2023-03-17 11:41:52 +08:00
parent c4b311e980
commit 5e06d6b448

View File

@@ -221,13 +221,13 @@ void test_Ini_Get_Value() {
// Test: get from section // Test: get from section
// key - exist // key - exist
key = "ext"; key = "ext";
szValue = PineIni_GetString(iniResult, sectionName, key, "k2v"); szValue = PineIni_Section_GetString(section, key, "k2v");
printf("Get String from <%s>.<%s> = %s\n", sectionName, key, szValue); printf("Get String from <%s>.<%s> = %s\n", sectionName, key, szValue);
// Test: get from section // Test: get from section
// key - not exist // key - not exist
key = "default_play"; key = "default_play";
szValue = PineIni_GetString(iniResult, sectionName, key, "video"); szValue = PineIni_Section_GetString(section, key, "video");
printf("Get String from <%s>.<%s> = %s\n", sectionName, key, szValue); printf("Get String from <%s>.<%s> = %s\n", sectionName, key, szValue);
// Test: get int value // Test: get int value