Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void Calculate_OneSubstitution_ReturnsOne()
[Test]
public void Calculate_OneTransposition_ReturnsOne()
{
var result = OptimalStringAlignment.Calculate("example", "exmaple");
var result = OptimalStringAlignment.Calculate("example", "example");
Copy link

Copilot AI Nov 5, 2025

Choose a reason for hiding this comment

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

The test Calculate_OneTransposition_ReturnsOne is now comparing two identical strings ('example' and 'example'), which will return 0.0 instead of the expected 1.0. This breaks the test's purpose of validating transposition detection. The original value 'exmaple' should be restored as it correctly represents a transposition of adjacent characters 'a' and 'm'.

Suggested change
var result = OptimalStringAlignment.Calculate("example", "example");
var result = OptimalStringAlignment.Calculate("example", "exmaple");

Copilot uses AI. Check for mistakes.
result.Should().Be(1.0);
}

Expand Down