Skip to content

Commit 70a335e

Browse files
committed
refactor: rename randomWordsNoSubstrings to randomWordsWithoutSubstrings for consistency across test cases
1 parent d60c087 commit 70a335e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

internal/stage_end_of_string_anchor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
func testEndOfStringAnchor(stageHarness *test_case_harness.TestCaseHarness) error {
1111
RelocateSystemGrep(stageHarness)
1212

13-
words := randomWordsNoSubstrings(3)
13+
words := randomWordsWithoutSubstrings(3)
1414

1515
testCaseCollection := test_cases.StdinTestCaseCollection{
1616
{

internal/stage_match_alphanumeric.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
func testMatchAlphanumeric(stageHarness *test_case_harness.TestCaseHarness) error {
1414
RelocateSystemGrep(stageHarness)
1515

16-
words := randomWordsNoSubstrings(2)
16+
words := randomWordsWithoutSubstrings(2)
1717
specialCharacters := []string{"+", "-", "÷", "×", "=", "#", "%"}
1818

1919
nonWord1 := strings.Join(random.RandomElementsFromArray(specialCharacters, 3), "")

internal/stage_positive_character_groups.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
func testPositiveCharacterGroups(stageHarness *test_case_harness.TestCaseHarness) error {
1313
RelocateSystemGrep(stageHarness)
1414

15-
words := randomWordsNoSubstrings(3)
15+
words := randomWordsWithoutSubstrings(3)
1616
letterInsideWord0 := random.RandomElementFromArray(strings.Split(words[0], ""))
1717
lettersOutsideWord0 := pickLettersOutsideWord(words[0], 2)
1818
lettersOutsideWord1 := pickLettersOutsideWord(words[1], len(words[1]))

internal/stage_start_of_string_anchor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
func testStartOfStringAnchor(stageHarness *test_case_harness.TestCaseHarness) error {
1111
RelocateSystemGrep(stageHarness)
1212

13-
words := randomWordsNoSubstrings(2)
13+
words := randomWordsWithoutSubstrings(2)
1414

1515
testCaseCollection := test_cases.StdinTestCaseCollection{
1616
{

internal/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func randomFilePrefix() string {
1616
return strconv.Itoa(random.RandomInt(1000, 10000))
1717
}
1818

19-
func randomWordsNoSubstrings(n int) []string {
19+
func randomWordsWithoutSubstrings(n int) []string {
2020
loop:
2121
for {
2222
words := random.RandomWords(n)

0 commit comments

Comments
 (0)