-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathformat_tests.scm
100 lines (85 loc) · 1.09 KB
/
format_tests.scm
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
(f a ; a
b ; x
c
)
cat
dog
(1 2 3 4 5 6)
(cond
((= 1 2) 3) ; comment
; second comment
((= 4456 5) 6) ; third comment
)
(cond
(; comment
(let 1
2
4
) ; comment
) ; comment
(c
d
) ; comment
)
(let ((pi 3.14)
(r 120)
) ; comment
(* pi r r) ; comment
)
(let ((+ (cond
(; comment
(+ 1 2 4) ; comment
) ; comment
(c
d
) ; comment
)
)
(r 120)
) ; comment
(* pi r r) ; comment
)
(let ((pi (cond
((+ 1 2 4) 6)
(c d)
)
)
(r 120)
)
(* pi r r)
)
(define (catdog x) (+ 1 x))
(define (f a b . c) (+ a b c))
((if 1
2
3
)
4
)
(f ; comment
a
b
)
(define ; comment
(f a b c) ; formals
(+ a b c)
)
(cond
((good? x)
(handle-good x)
)
((bad? x)
(handle-bad (if (really-bad? x)
(really-bad->bad x)
x
)
)
)
((ugly? x)
(handle-ugly x)
)
(else
(handle-default x)
)
)
(+ 1 (foo 3.5 a) bar baz)