Skip to content

Commit a16418c

Browse files
committed
fix unit tests for align change
1 parent 4384762 commit a16418c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Tests/Reqnroll.VisualStudio.Tests/Editor/Services/GherkinDocumentFormatterTests.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,13 @@ public void Should_not_remove_unfinished_cells_when_formatting_table()
142142
[Theory]
143143
// Header is 13 chars, so all cells will be padded to width 13
144144
[InlineData("| 123 |", true, "| 123 |")] // Right-align: only digits
145-
[InlineData("| abc123 |", true, "| abc123 |")] // Right-align: mixed letters and digits
146-
[InlineData("| 12abc |", true, "| 12abc |")] // Right-align: digits at start
145+
[InlineData("| -12.3 |", true, "| -12.3 |")] // Right-align: fraction number
146+
[InlineData("| 1,000 |", true, "| 1,000 |")] // Right-align: a thousand separator
147+
[InlineData("| -1.23E8 |", true, "| -1.23E8 |")] // Right-align: scientific notation
148+
[InlineData("| abc123 |", true, "| abc123 |")] // Left-align: mixed letters and digits
149+
[InlineData("| 12abc |", true, "| 12abc |")] // Left-align: digits at start
147150
[InlineData("| abc |", true, "| abc |")] // Left-align: only letters
148-
[InlineData("| !@#4$% |", true, "| !@#4$% |")] // Right-align: special chars and digit
151+
[InlineData("| !@#4$% |", true, "| !@#4$% |")] // Left-align: special chars and digit
149152
[InlineData("| !@#$% |", true, "| !@#$% |")] // Left-align: only special chars
150153
[InlineData("| 123 |", false, "| 123 |")] // Left-align: only digits, but right-align disabled
151154
[InlineData("| abc123 |", false, "| abc123 |")] // Left-align: mixed, but right-align disabled

0 commit comments

Comments
 (0)