diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-01-17 18:50:32 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-01-17 18:50:32 -0800 |
commit | 33d602db6c5881b7cd26665a2a7002b257762928 (patch) | |
tree | 5c3a6349f6e9ba7e3f7cf57cb68df5fbfb2ae0e5 /mu.arc.t | |
parent | e047981d39cb812e5919b17f10b44a4f9b4e7b85 (diff) | |
download | mu-33d602db6c5881b7cd26665a2a7002b257762928.tar.gz |
582 - first tests for printing to screen
Diffstat (limited to 'mu.arc.t')
-rw-r--r-- | mu.arc.t | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mu.arc.t b/mu.arc.t index dcb38e0f..e132b598 100644 --- a/mu.arc.t +++ b/mu.arc.t @@ -4069,6 +4069,32 @@ (when (~memory-contains-array base "-237") (prn "F - converting negative integer to decimal string"))) +(reset) +(new-trace "fake-screen-initial") +(add-code:readfile "chessboard-cursor.mu") +(add-code + '((function! main [ + (default-space:space-address <- new space:literal 30:literal/capacity) + (screen:terminal-address <- init-fake-terminal 20:literal 10:literal) + (5:string-address/raw <- get screen:terminal-address/deref data:offset) + ]))) +(run 'main) +(each routine completed-routines* + (awhen rep.routine!error + (prn "error - " it))) +(when (~memory-contains-array memory*.5 + (+ " " + " " + " " + " " + " " + " " + " " + " " + " " + " ")) + (prn "F - fake screen starts out with all spaces")) + ) ; section 100 for string utilities (reset) |