Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dkalinowski committed Jan 13, 2025
1 parent 1d93195 commit 89cab63
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/test/http_rest_api_handler_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1250,12 +1250,7 @@ TEST_F(ConfigStatus, configWithMediapipeRemoved) {
#endif

TEST_F(ConfigStatus, url_decode) {
std::string input = "a%20b%20c%20d";
std::string expected = "a b c d";
std::string output = ovms::urlDecode(input);
EXPECT_EQ(expected, output);
input = "model%2Fname";
expected = "model/name";
output = ovms::urlDecode(input);
EXPECT_EQ(expected, output);
EXPECT_EQ("a b c d", ovms::urlDecode("a%20b%20c%20d"));
EXPECT_EQ("model/name", ovms::urlDecode("model%2Fname"));
EXPECT_EQ("model%", ovms::urlDecode("model%"));
}

0 comments on commit 89cab63

Please sign in to comment.