Skip to content

Commit 09c8328

Browse files
committed
rename test
1 parent eb756bb commit 09c8328

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/llm/output_parsers/partial_json_builder_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ TEST_F(PartialJsonBuilderTest, escapedCharactersSanityCheck) {
262262
ASSERT_EQ(parsedJson["arguments"].GetString(), std::string("{\"impl\": \"TYPE MQTT_Config AS\\n VAR\\n \\\"txt\\\" BrokerIP : STRING := '127.0.0.1';\"}"));
263263
}
264264

265-
TEST_F(PartialJsonBuilderTest, tmptest) {
265+
TEST_F(PartialJsonBuilderTest, doubleBackslashBeforeQuote) {
266+
// Check that double backslash before quote is handled correctly (final quote is not escaped)
266267
std::string targetJson = R"({"name": "set_status", "arguments": "{\"status\": \"CONNECTED,\\"})";
267268
PartialJsonBuilder builder;
268269
rapidjson::Document parsedJson;

0 commit comments

Comments
 (0)