Skip to content

Commit ef0634c

Browse files
AlfredAlfred
authored andcommitted
docs: mention toPosixPath in path assertion guidance
1 parent a4d856c commit ef0634c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Applies to tests under `test/`.
1313

1414
- Do not hard-code Unix path separators in CLI output expectations unless the implementation intentionally emits POSIX paths.
1515
- For filesystem paths, build expected values with `path.join(...)`, `path.relative(...)`, or `FileSystemUtils.joinPath(...)`.
16-
- For human-readable output, either assert a deliberately normalized display format or normalize both actual and expected strings before comparing.
16+
- For human-readable output, either assert a deliberately normalized display format or normalize both actual and expected strings before comparing, for example with `FileSystemUtils.toPosixPath()` to convert backslashes to forward slashes for cross-platform consistency.
1717
- When touching path behavior, add coverage that would fail on Windows path separators.
1818

1919
## Path Canonicalization

0 commit comments

Comments
 (0)