Skip to content

Commit

Permalink
Fix incorrect assertion comment in RepeatTests.cs
Browse files Browse the repository at this point in the history
The comment incorrectly stated that the IO executed 5 times when the test checks for 4 executions. This change updates the comment to match the actual assertion logic, ensuring clarity and accuracy in the test documentation.
  • Loading branch information
louthy committed Dec 24, 2024
1 parent 3ba1af7 commit 08274bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LanguageExt.Tests/IOTests/RepeatTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void RepeatWhile_WithTimeSeriesSchedule_ShouldRepeatWhileConditionIsMet()

// Assert
Assert.Equal(4, result); // The final value when the condition `value < 5` is no longer true
Assert.Equal(4, callCount); // Make sure the IO executed 5 times
Assert.Equal(4, callCount); // Make sure the IO executed 4 times
}

[Fact]
Expand Down

0 comments on commit 08274bc

Please sign in to comment.