File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 12
12
(ok (= 1 1 ))))
13
13
14
14
(deftest symbols-test
15
+ (testing " We can find imported symbols"
16
+ (ok (eq treep-impl ::+symbol-treep+ (find-symbol " treep" treep-impl ::+root-symbol+ )))
17
+ (ok (eq treep-impl ::+symbol-seq+ (find-symbol " seq" treep-impl ::+symbol-treep+ ))))
18
+ (testing " Symbol identity persists through file compilation"
19
+ (ok (eq (load-time-value (intern " test" treep-impl ::+root-symbol+ )) (intern " test" treep-impl ::+root-symbol+ )))
20
+ ; ; Note compiling then loading a compiled file doesn't preserve the identity of uninterned symbols, so if we want to generate
21
+ ; ; Lisp s-expressions and dump those to a file to file-compile it, a strategy is needed to replace literal symbols with calls to intern.
22
+ (ok (not (eq ' #.(intern " test" treep-impl ::+root-symbol+ ) (intern " test" treep-impl ::+root-symbol+ )))))
15
23
(testing " The default search path of a symbol includes its parent"
16
24
(ok (eq treep-impl ::+symbol-seq+ (find-symbol " seq" treep-impl ::+symbol-repl+ )))))
17
25
Original file line number Diff line number Diff line change 5
5
:depends-on (" closer-mop" " fset" )
6
6
:components ((:module " src/level0"
7
7
:components
8
- ((:file " packages" ) (:file " symbols" )
8
+ ((:file " packages" )
9
+ (:file " symbols" ) (:file " symbols-io" )
9
10
(:file " forms" ) (:file " abstractions" )
10
11
(:file " reader" )
11
12
(:file " printer" )
You can’t perform that action at this time.
0 commit comments