]> eyrie.org Git - kerberos/krb5-strength.git/blob - tests/data/passwords/letter.c
New upstream version 3.2
[kerberos/krb5-strength.git] / tests / data / passwords / letter.c
1 /*
2  * Automatically generated -- do not edit!
3  *
4  * This file was automatically generated from the original JSON source file
5  * for the use in C test programs.  To make changes, modify the original
6  * JSON source or (more rarely) the make-c-data script and run it again.
7  *
8  * Written by Russ Allbery <eagle@eyrie.org>
9  * Copyright 2020 Russ Allbery <eagle@eyrie.org>
10  * Copyright 2013
11  *     The Board of Trustees of the Leland Stanford Junior University
12  *
13  * SPDX-License-Identifier: MIT
14  */
15
16 #include <tests/data/passwords/tests.h>
17
18 extern const struct password_test letter_tests[];
19 const struct password_test letter_tests[] = {
20     {
21
22         "non-ASCII characters",
23         "test@EXAMPLE.ORG",
24         "عربى",
25         KADM5_PASS_Q_GENERIC,
26         "Password contains non-ASCII or control characters",
27         0,
28     },
29     {
30
31         "control character",
32         "test@EXAMPLE.ORG",
33         "ouchD\ 1artetch",
34         KADM5_PASS_Q_GENERIC,
35         "Password contains non-ASCII or control characters",
36         0,
37     },
38     {
39
40         "tab",
41         "test@EXAMPLE.ORG",
42         "       ouchDartetch",
43         KADM5_PASS_Q_GENERIC,
44         "Password contains non-ASCII or control characters",
45         0,
46     },
47     {
48
49         "all alphabetic",
50         "test@EXAMPLE.ORG",
51         "ouchDartetch",
52         KADM5_PASS_Q_CLASS,
53         "Password is only letters and spaces",
54         0,
55     },
56     {
57
58         "all alphabetic with spaces",
59         "test@EXAMPLE.ORG",
60         "the perils of all good dogs",
61         KADM5_PASS_Q_CLASS,
62         "Password is only letters and spaces",
63         0,
64     },
65     {
66
67         "punctuation",
68         "test@EXAMPLE.ORG",
69         "the perils of all good dogs!",
70         0,
71         NULL,
72         0,
73     },
74     {
75
76         "digits",
77         "test@EXAMPLE.ORG",
78         "the perils 0of all good dogs",
79         0,
80         NULL,
81         0,
82     },
83     {
84
85         "mindiff (1 character)",
86         "test@EXAMPLE.ORG",
87         "11111111111111111111",
88         KADM5_PASS_Q_CLASS,
89         "Password does not contain enough unique characters",
90         0,
91     },
92     {
93
94         "mindiff (2 characters)",
95         "test@EXAMPLE.ORG",
96         "1b1b1b1b1b1b1b1b1b1b",
97         KADM5_PASS_Q_CLASS,
98         "Password does not contain enough unique characters",
99         0,
100     },
101     {
102
103         "mindiff (3 characters)",
104         "test@EXAMPLE.ORG",
105         "1bc1bc1bc1bc1bc1bc1b",
106         KADM5_PASS_Q_CLASS,
107         "Password does not contain enough unique characters",
108         0,
109     },
110     {
111
112         "mindiff (4 characters)",
113         "test@EXAMPLE.ORG",
114         "1bcd1bcd1bcd1bcd1bcd",
115         KADM5_PASS_Q_CLASS,
116         "Password does not contain enough unique characters",
117         0,
118     },
119     {
120
121         "mindiff (5 characters)",
122         "test@EXAMPLE.ORG",
123         "1bcde1bcde1bcde1bcde",
124         KADM5_PASS_Q_CLASS,
125         "Password does not contain enough unique characters",
126         0,
127     },
128     {
129
130         "mindiff (6 characters)",
131         "test@EXAMPLE.ORG",
132         "1bcdef1bcdef1bcdef1b",
133         KADM5_PASS_Q_CLASS,
134         "Password does not contain enough unique characters",
135         0,
136     },
137     {
138
139         "mindiff (7 characters)",
140         "test@EXAMPLE.ORG",
141         "1cdbfge1cdbeg1fcdbef",
142         KADM5_PASS_Q_CLASS,
143         "Password does not contain enough unique characters",
144         0,
145     },
146     {
147
148         "mindiff (8 characters)",
149         "test@EXAMPLE.ORG",
150         "1dbegchf1cdbfgh1ebcd",
151         0,
152         NULL,
153         0,
154     },
155     {
156
157         "mindiff (9 characters)",
158         "test@EXAMPLE.ORG",
159         "bcd1fgei1bhdefchig1b",
160         0,
161         NULL,
162         0,
163     },
164 };