◐ Shell
clean mode source ↗

Add comprehensive array and dictionary tests for ConvertTo-Json by yotsuda · Pull Request #26742 · PowerShell/PowerShell

iSazonov

iSazonov

@iSazonov iSazonov added the CL-Test

Indicates that a PR should be marked as a test change in the Change Log

label

Feb 4, 2026

iSazonov

@iSazonov iSazonov added the Approved-LowRisk

Indicate a PR has been approved and can be merged after a quick review of another maintainer.

label

Feb 4, 2026
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Use IPAddress instead of integer for depth limit tests to clearly
  verify ToString() is called when depth is exceeded
- Use Unicode escape format for unicode key test
- Add array versions of DateTime, Guid, and enum serialization tests
- Remove duplicate 'array with hashtable elements' test

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Change IP from 10.0.0.1 to 192.168.1.1 for consistency with previous test
- Replace BeLike/Not-BeExactly with BeExactly using actual JSON output

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

@yotsuda

@yotsuda yotsuda marked this pull request as ready for review

February 6, 2026 13:07

iSazonov

daxian-dbw

@yotsuda yotsuda deleted the add-convertto-json-array-dictionary-tests branch

February 10, 2026 00:09

JustinGrote pushed a commit to JustinGrote/PowerShell that referenced this pull request

Jun 2, 2026