Files
cobol-java-v3/benchmark-programs/cross-cutting/japanese/README.md
T
NB-076 94400d50d4 feat: add benchmark-programs — 58 telecom COBOL test programs
作为子目录纳入系统,与核心测试管道协同

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-25 09:53:21 +08:00

1.0 KiB

Japanese Character Handling

Test Cases

Test ID Description
J-N001 PIC N full-width field length (10 chars = 20 bytes)
J-N002 Move between PIC N fields
J-N003 N field with numeric data
J-N004 N field comparison
J-N005 N field with mixed content
J-K001 Half-width katakana in PIC X
J-K002 Katakana field move
J-K003 Empty X field
J-K004 STRING with X fields
J-K005 UNSTRING with X fields
J-D001 Shift-JIS 5C problem character (backslash)
J-D002 7C problem character (pipe)
J-D003 Mixed 5C/7C characters
J-D004 Comparison with 5C/7C
J-S001 INSPECT TALLYING with X data
J-S002 INSPECT REPLACING with X data
J-S003 INSPECT CONVERTING with X data

Features Covered

  • PIC N (national) character fields for full-width text
  • PIC X for half-width katakana
  • Shift-JIS ambiguous byte handling (0x5C, 0x7C)
  • INSPECT with TALLYING, REPLACING, CONVERTING
  • STRING and UNSTRING operations

Expected Results

All 17 tests should display PASS.