Files
jak-project/goal_src/test/test-new-string.gc
T
water111 c9b53d51ff Compiler Cleanup (Part 2) (#56)
* check on windows

* fix windows build

* version test

* clean up - will it work on windows

* fix formatting
2020-09-25 21:11:27 -04:00

12 lines
363 B
Common Lisp

(start-test "new-string")
(let ((new-string (new 'global 'string 17 "alligator")))
(expect-true (= 17 (-> new-string allocated-length)))
(expect-true (= 9 (length new-string)))
(expect-true (= #x61 (-> new-string data 0))) ;; a
(expect-true (= #x72 (-> new-string data 8))) ;; r
(expect-true (= #x00 (-> new-string data 9))) ;; \0
)
(finish-test)