summary refs log tree commit diff stats
path: root/nimsuggest/tests
Commit message (Expand)AuthorAgeFilesLines
* Allow void macro result (#11286)Arne Döring2019-05-211-1/+1
* move assertions and iterators out of system.nim (#10597)Miran2019-03-072-3/+2
* compiler/types: correctly generates signature for non-proc types (#10658)alaviss2019-02-131-0/+12
* compiler/[msgs, suggest]: improve highlighter accuracy (#10496)alaviss2019-02-072-0/+21
* suggest: quote operators and keywords on suggestion (#10460)alaviss2019-01-281-0/+10
* semcall: correct lineinfo for accquoted symbols (#10461)alaviss2019-01-271-0/+2
* compiler/sem: correct macros lineinfo (#10438)alaviss2019-01-241-0/+13
* compiler/sem*: better lineinfo for templates (#10428)alaviss2019-01-233-2/+16
* nimsuggest/tester: disable highlight tests for epc (#10426)alaviss2019-01-232-2/+0
* compiler/sem*: improve lineinfo for qualified and generic procs (#10427)alaviss2019-01-232-0/+27
* Correct lineinfo for accent quoted symbols in proc definition (#10399)alaviss2019-01-211-0/+8
* fixes nim-lang/nimsuggest#76 (#10093)alaviss2018-12-251-0/+28
* add nim c -r nimsuggest/tester to travis (#8805)Timothee Cour2018-08-298-0/+8
* cleanup nimsuggest tests a bitAndreas Rumpf2018-08-102-5/+5
* fixes #6707; nimsuggest tests still not greenAndreas Rumpf2017-11-085-7/+7
* minor update for nimsuggestAndreas Rumpf2017-04-061-2/+2
* nimsuggest: suggest types in a type sectionAndreas Rumpf2017-03-141-0/+15
* nimsuggest: make test green againAndreas Rumpf2017-03-141-2/+2
* nimsuggest: special rule for 'of' completion in case statementsAndreas Rumpf2017-03-101-0/+17
* nimsuggest: make 'con' work againAndreas Rumpf2017-03-101-0/+13
* nimsuggest: maxresults limit; fixed local symbol usages priorizationsAndreas Rumpf2017-03-101-0/+16
* nimsuggest: more precise cursor trackingAraq2017-03-0914-0/+622
e>
         

                                  














                                                                                                        

       

                                    
(selective-load "mu.arc" section-level)
(set allow-raw-addresses*)

(section 100

(reset)
(new-trace "new-screen")
(add-code:readfile "edit.mu")
(add-code
  '((function test-new-screen [
      (1:screen-address/global <- new-screen 5:literal 5:literal)
     ])))
;? (each stmt function*!new-screen
;?   (prn stmt))
(let routine make-routine!test-new-screen
  (let before rep.routine!alloc
;?     (= dump-trace* (obj blacklist '("sz" "m" "setm" "addr" "cvt0" "cvt1")))
    (run 'test-new-screen)
;?     (prn memory*)
;?     (prn memory*.2001)
    (when (~is (memory* memory*.1) 5)  ; number of rows
      (prn "F - newly-allocated screen doesn't have the right number of rows: @(memory* memory*!2001)"))
    (let row-pointers (let base (+ 1 memory*.1)
                        (range base (+ base 4)))
  ;?     (prn row-pointers)
      (when (some nil (map memory* row-pointers))
        (prn "F - newly-allocated screen didn't initialize all of its row pointers"))
      (when (~all 5 (map memory* (map memory* row-pointers)))
        (prn "F - newly-allocated screen didn't initialize all of its row lengths")))))

(reset)

)  ; section 100 for all editor code