Skip to content

Commit fbdc978

Browse files
committed
OX-02 P14: compare the navigated file's path case-insensitively
The run on 90bd419 passed every check in Visual Studio 2026 (19/19). The run on 7cdf529 (same product code) failed only K2-navigation with the caret at exactly 10:9 = expected 10:9: the driver compared DTE's FullName to the fixture path with a case-sensitive -eq. Compare full paths ignoring case, and print both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011ZFvhLx1fM9Gerg4dKsZcL
1 parent 90bd419 commit fbdc978

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎scripts/vs/owen-vs-acceptance.ps1‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,10 @@ if ($row) { try {
343343
$active = Retry { $dte.ActiveDocument }
344344
$point = Retry { $active.Selection.ActivePoint }
345345
$expectColumn = ((Retry { (All-Text) -split "`r?`n" })[$regionLine - 1]).IndexOf('OrderProtocol') + 1
346-
Check "K2-navigation" ($active.FullName -eq $fx.use -and $point.Line -eq $regionLine -and $point.LineCharOffset -eq $expectColumn) "double-click -> $($active.Name) line $($point.Line) column $($point.LineCharOffset); expected Use.cs line $regionLine column $expectColumn (the core's location, §6)"
346+
# the same file, whatever casing or form DTE reports its path in (the run on 7cdf529 failed
347+
# this check with the caret exactly at 10:9 on a FullName that compared unequal by case)
348+
$sameFile = [System.IO.Path]::GetFullPath($active.FullName).Equals([System.IO.Path]::GetFullPath($fx.use), [System.StringComparison]::OrdinalIgnoreCase)
349+
Check "K2-navigation" ($sameFile -and $point.Line -eq $regionLine -and $point.LineCharOffset -eq $expectColumn) "double-click -> '$($active.FullName)' line $($point.Line) column $($point.LineCharOffset); expected '$($fx.use)' line $regionLine column $expectColumn (the core's location, §6)"
347350
Shot "k2-navigated"
348351
} catch { Check "K2-navigation" $false "navigation could not be driven: $($_.Exception.Message) at $($_.InvocationInfo.PositionMessage)" } }
349352

0 commit comments

Comments
 (0)