Skip to content

Conversation

@wsobel
Copy link
Member

@wsobel wsobel commented Jan 10, 2026

Added unit test to check if Japanese characters will pass through the agent unchanged in XML and JSON

@wsobel wsobel requested review from Copilot and simonyg January 10, 2026 17:19
@wsobel wsobel linked an issue Jan 10, 2026 that may be closed by this pull request
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a unit test to verify that Japanese characters are properly handled and preserved when passed through the MTConnect agent in both XML and JSON response formats.

Changes:

  • Added new test case should_handle_japanese_characters that validates Japanese character handling in both XML and JSON formats
  • Added PARSE_JSON_RESPONSE_QUERY macro to complement the existing XML equivalent for consistency
  • Minor formatting improvement to an existing test assertion

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
test_package/agent_test.cpp Added comprehensive test case for Japanese character handling in XML and JSON responses; enabled JSON version 2 in test setup
test_package/agent_test_helper.hpp Added PARSE_JSON_RESPONSE_QUERY macro for future JSON response testing with query parameters
test_package/websockets_rest_sink_test.cpp Reformatted multi-line assertion for better readability

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

wsobel and others added 3 commits January 10, 2026 18:22
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@wsobel wsobel merged commit 2852bfd into main Jan 10, 2026
7 checks passed
@wsobel wsobel deleted the 588_japanese_character_test branch January 10, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Japanese Text

3 participants