forked from nayish/regex-workshop
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test-config.json
73 lines (73 loc) · 3.38 KB
/
test-config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"steps": [
{
"title": "contain \"a\"",
"pass": ["a", "ab", "ba", "b\na"],
"fail": ["", "bbb", "cbccb", "b\nc"]
},
{
"title": "start with \"m\"",
"pass": ["m", "mab", "m ba", "m\na"],
"fail": ["", "bmbb", "cbccbm", "b\nm"]
},
{
"title": "end with number",
"pass": ["1", "asc ascas cas 7", "nasf as lfnkalsf 0", "m\na 1\nasdasd2"],
"fail": ["", "1asd", "asda\n1sfsdf", "b\n1asdasd\n121313df"]
},
{
"title": "be valid phone number",
"pass": ["052-000-0000", "053-452-1234", "056-999-9999"],
"fail": ["0121313131", "052-123-123", "123-123-1234", "123-121", "050-123-123A"]
},
{
"title": "contain \"guy varzager\" or \"guy segev\"",
"pass": ["guy varzager has too many gifs", "guy segev", "guy segev & guy varzager"],
"fail": ["guy warzager has too many gifs", "guy segzager", "moo", "var", "Guy!", "segev guy", "segev varzager"]
},
{
"title": "be word of length 3-10 or number of length 3",
"pass": ["abc", "maSksmdkas", "worry", "great","123", "934"],
"fail": ["", "ab", "abcabcabcab", "021", "abc1b", "123a", "1", "004"]
},
{
"title": "contain line that starts with x or X then any amount of c or C, ending with q or Q",
"pass": ["xq", "xcq", "xcccccccccq", "Xccq","xCCCCCCccccccCccccccccccQ", "xCq", "moo\nXQ", "XcccCCCcCCCcq\nqcx"],
"fail": ["x Cq", "xc", "cq", "qqqqq", "q", "", "qcxx", "qxxxxxxxxc", "moo xq", "a\nqcx\nb"]
},
{
"title": "contain an even number of \"g\"s in a row",
"pass": ["gg", "gggg", "gggggg", "a gggggggg","a gg nvs vs 123 4124 bdfbg"],
"fail": ["g", "ggg", "123 sfs ggggg 123", "g1g1g1"]
},
{
"title": "have three matching characters",
"pass": ["aaa", "abcdefghijklmnopqrstuvwxyzyzy", "a@kpoq@>@", "abc\ndef\nghi\njkl", "WubbaLubaDubDub"],
"fail": ["abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz", "*%@@", "!%mMM", "AaABbBCcC", "Rick and Morty", ""]
},
{
"title": "be number with only odd digits containing at least one 5 digit",
"pass": ["1333377795", "5", "51", "75", "55555", "95999931959", "13799999733319975"],
"fail": ["a", "a5", "5 ", " 5", "1", "137137173739", "25", "5899999999"]
},
{
"title": "have no characters more than once in a row",
"pass": ["abcab", "*&*", "!%mM", "AcAcAC", "Rick and Morty", ""],
"fail": [" ", "opopopopopopoplla asdasd asdas", "zz", "tytyt**t", "Wubba Luba Dub Dub", "1\t\t9"]
},
{
"title": "be valid password",
"pass": ["Password1!", "A1@cd8k!", "AbCd12#4", "AbCd12#4AbCd12$4"],
"fail": ["Pa1!", "Password!", "Password1", "Password1!Passwor"]
},
{
"title": "be 4-5 letter polyndrom",
"pass": ["abcba", "jjjjj", "klolk", "zkmkz", "abba", "noon"],
"fail": ["abcab", "aba", "aaaaaaa", "abcde", "ababab", "abbac"]
},{
"title": "be sequence of x's of prime length",
"pass": ["xx", "xxx", "xxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"],
"fail": ["xxxx", "xxxxxx", "xxxxxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"]
}
]
}