Skip to content

Commit 42e04d4

Browse files
Cover all positions in unit test
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 769179d commit 42e04d4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Flow.Launcher.Test/TranslationMappingTest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ public void AddNewIndex_ShouldAddTranslatedIndexPlusLength()
3232
[TestCase(6, 5)] // "o" (translated from "用") -> original index 5
3333
[TestCase(7, 5)] // "n" (translated from "用") -> original index 5
3434
[TestCase(8, 5)] // "g" (translated from "用") -> original index 5
35+
[TestCase(9, 6)] // " " (space between "Yong" and "Hu") -> original index 6
3536
[TestCase(10, 6)] // "H" (translated from "户") -> original index 6
37+
[TestCase(11, 6)] // "u" (translated from "户") -> original index 6
38+
public void MapToOriginalIndex_ShouldReturnExpectedIndex(int translatedIndex, int expectedOriginalIndex)
3639
public void MapToOriginalIndex_ShouldReturnExpectedIndex(int translatedIndex, int expectedOriginalIndex)
3740
{
3841
var mapping = new TranslationMapping();

0 commit comments

Comments
 (0)