File: lexer.sieve

package info (click to toggle)
dovecot 1:2.2.13-12~deb8u4
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 38,792 kB
  • sloc: ansic: 341,472; sh: 16,920; makefile: 5,393; cpp: 1,474; perl: 265; xml: 44; python: 34; pascal: 27
file content (71 lines) | stat: -rw-r--r-- 807 bytes parent folder | download | duplicates (5)
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
/*
 * Lexer tests
 *
 * Total errors: 7 (+1 = 8)
 */

/*
 * Number limits
 */

# Number too large
if size :under 4294967300 {
	stop;
}

# Number too large
if size :under 4294967296 {
	stop;
}

# Number too large
if size :over 35651584k {
	stop;
}

# Number too large
if size :over 34816M {
	stop;
}

# Number too large
if size :over 34G {
	stop;
}

# Number too large
if size :over 4G {
	stop;
}

# Number far too large
if size :over 49834598293485814273947921734981723971293741923 {
	stop;
}

# Not an error
if size :under 4294967295 {
	stop;
}

# Not an error
if size :under 4294967294 {
	stop;
}

# Not an error
if size :under 1G {
	stop;
}

/*
 * Identifier limits
 */

if this_is_a_rediculously_long_test_name {
	stop;
}

if test :this_is_an_even_more_rediculously_long_tagged_argument_name {
	stop;
}