Skip to content

Commit 313ce17

Browse files
Copilotjackfirth
andcommitted
Fix function-expression-analyzer tests - use identifiers instead of literals
Co-authored-by: jackfirth <[email protected]>
1 parent 9ab86ae commit 313ce17

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

default-recommendations/analyzers/function-expression-analyzer-test.rkt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,22 @@ header: - #lang racket/base
66

77

88
analysis-test: "applied functions should be annotated"
9-
- (list 1 2 3)
9+
--------------------
10+
(define (f)
11+
(list 1 2 3))
12+
--------------------
13+
@within - (list 1 2 3)
1014
@inspect - list
1115
@property application-subexpression-kind
1216
@assert function
1317

1418

1519
analysis-test: "applied function arguments should be annotated"
16-
- (list 1 2 3)
17-
@inspect - 2
20+
--------------------
21+
(define (f x y z)
22+
(list x y z))
23+
--------------------
24+
@within - (list x y z)
25+
@inspect - y
1826
@property application-subexpression-kind
1927
@assert argument

0 commit comments

Comments
 (0)