Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions data/content.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,16 +426,16 @@ func GetLessons() []models.Lesson {
"- Writing cleaner patterns\n" +
"- Quick character class shortcuts\n\n" +
"Test text:\n" +
"✓ a1 (letter followed by number)\n" +
"✓ x9 (letter followed by number)\n" +
"✗ 1a (number followed by letter)\n" +
"✓' 1' (whitespace followed by number)\n" +
"✓' _' (whitespace followed by underscore)\n" +
"✗' a' (whitespace followed by letter)\n" +
"✗ ab (no number)\n" +
"✗ 12 (no letter)",
Task: "Write a pattern that matches a word character followed by a digit",
Task: "Write a pattern that matches a space followed by a word character",
TestCases: []models.TestCase{
{Text: "a1", Expected: true},
{Text: "x9", Expected: true},
{Text: "1a", Expected: false},
{Text: " 1", Expected: true},
{Text: " _", Expected: true},
{Text: " a", Expected: true},
{Text: "ab", Expected: false},
{Text: "12", Expected: false},
},
Expand Down