Skip to content

Commit

Permalink
chore(AIP-126): add numeric test cases for casing rule (#1419)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahdietz authored Aug 27, 2024
1 parent 4eae5b0 commit 4c90fbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rules/aip0126/upper_snake_values_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ func TestUpperSnake(t *testing.T) {
}{
{"ValidOneWord", []string{"ONE"}, testutils.Problems{}},
{"ValidTwoWords", []string{"ONE_TWO"}, testutils.Problems{}},
{"ValidTwoWordsTrailingNumber", []string{"ONE_TWO2"}, testutils.Problems{}},
{"ValidThreeWordsTrailingNumber", []string{"ONE_TWO2_THREE"}, testutils.Problems{}},
{"ValidThreeWordsTrailingLeadingNumber", []string{"ONE_TWO2_3THREE"}, testutils.Problems{}},
{"ValidThreeWordsIsolatedNumber", []string{"ONE_TWO_3"}, testutils.Problems{}},
{"InvalidOneWord", []string{"one"}, testutils.Problems{{Suggestion: "ONE"}}},
{"InvalidTwoWordsCamel", []string{"oneTwo"}, testutils.Problems{{Suggestion: "ONE_TWO"}}},
{"InvalidTwoWordsLowerSnake", []string{"one_two"}, testutils.Problems{{Suggestion: "ONE_TWO"}}},
Expand Down

0 comments on commit 4c90fbf

Please sign in to comment.