Skip to content

Commit

Permalink
w
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Feb 20, 2025
1 parent a7aada2 commit 72492b1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_paramdict.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ static int test_paramdict_2()
std::string s = pdt.get(0, "");
if (s != "bij,bjk->bik")
{
fprintf(stderr, "test_paramdict string text failed %d != bij,bjk->bik\n", s.c_str());
fprintf(stderr, "test_paramdict string text failed %s != bij,bjk->bik\n", s.c_str());
return -1;
}

Expand All @@ -216,7 +216,7 @@ static int test_paramdict_2()
s = pdt.get(1, "");
if (s != "This_is_a_very_long_long_string")
{
fprintf(stderr, "test_paramdict string text failed %d != This_is_a_very_long_long_string\n", s.c_str());
fprintf(stderr, "test_paramdict string text failed %s != This_is_a_very_long_long_string\n", s.c_str());
return -1;
}

Expand All @@ -230,7 +230,7 @@ static int test_paramdict_2()
s = pdt.get(2, "");
if (s != "X")
{
fprintf(stderr, "test_paramdict string text failed %d != X\n", s.c_str());
fprintf(stderr, "test_paramdict string text failed %s != X\n", s.c_str());
return -1;
}

Expand Down Expand Up @@ -461,7 +461,7 @@ static int test_paramdict_5()
std::string s = pdt.get(0, "");
if (s != "bij,bjk->bik")
{
fprintf(stderr, "test_paramdict string text failed %d != bij,bjk->bik\n", s.c_str());
fprintf(stderr, "test_paramdict string text failed %s != bij,bjk->bik\n", s.c_str());
return -1;
}

Expand All @@ -475,7 +475,7 @@ static int test_paramdict_5()
s = pdt.get(1, "");
if (s != "This_is_a_very_long_long_string")
{
fprintf(stderr, "test_paramdict string text failed %d != This_is_a_very_long_long_string\n", s.c_str());
fprintf(stderr, "test_paramdict string text failed %s != This_is_a_very_long_long_string\n", s.c_str());
return -1;
}

Expand All @@ -489,7 +489,7 @@ static int test_paramdict_5()
s = pdt.get(2, "");
if (s != "X")
{
fprintf(stderr, "test_paramdict string text failed %d != X\n", s.c_str());
fprintf(stderr, "test_paramdict string text failed %s != X\n", s.c_str());
return -1;
}

Expand Down

0 comments on commit 72492b1

Please sign in to comment.