cell_check_result   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/tests/core/game-of-life.xtm

Implementation

;; uses hardcoded global "world" pointer
(bind-func cell_check_result
  (lambda (expected:CellValue*)
    (let ((res (= (cell_value world
                           (tref expected 0)
                           (tref expected 1))
                  (tref expected 2))))
      (if (not res)
          (println "wrong for x =" (tref expected 0) "y =" (tref expected 1)
                   "got" (cell_value world
                           (tref expected 0)
                           (tref expected 1))
                   "was expecting" (tref expected 2)))
      res)))


Back to Index

Similar Entries

  • Widget_checkbox    xtlang
  • Widget_checkbox    xtlang
  • Widget_checkbox_c    xtlang
  • cell_count_neighbors    xtlang
  • cell_set_value    xtlang
  • cell_value    xtlang
  • check-for-literal-match    scheme
  • check-token    scheme
  • iffchunk_check_ID    xtlang
  • impc:ir:check-type-size-calculations    scheme
  • impc:ir:compiler:closure-refcheck    scheme
  • impc:ir:str-list-check    scheme
  • impc:ti:array-ref-check    scheme
  • impc:ti:array-ref-ptr-check    scheme
  • impc:ti:array-set-check    scheme
  • impc:ti:begin-check    scheme
  • impc:ti:bitcast-check    scheme
  • impc:ti:bitconvert-check    scheme
  • impc:ti:block:check-for-free-syms    scheme
  • impc:ti:callback-check    scheme
  • impc:ti:carcdr-check    scheme
  • impc:ti:check-bang-against-reified    scheme
  • impc:ti:check-memzone-void?    scheme
  • impc:ti:check-to-update-generic-vars    scheme
  • impc:ti:closure-call-check    scheme
  • impc:ti:closure-ref-check    scheme
  • impc:ti:closure-refcheck-check    scheme
  • impc:ti:closure-set-check    scheme
  • impc:ti:coerce-check    scheme
  • impc:ti:compare-check    scheme
  • impc:ti:create_zone-check    scheme
  • impc:ti:dotimes-check    scheme
  • impc:ti:fprintf-check    scheme
  • impc:ti:fptrcall-check    scheme
  • impc:ti:fptrcall-check    scheme
  • impc:ti:fscanf-check    scheme
  • impc:ti:heap-alloc-check    scheme
  • impc:ti:if-check    scheme
  • impc:ti:lambda-check    scheme
  • impc:ti:let-check    scheme
  • impc:ti:make-array-check    scheme
  • impc:ti:make-tuple-check    scheme
  • impc:ti:make-vector-check    scheme
  • impc:ti:math-check    scheme
  • impc:ti:math-intrinsic-check    scheme
  • impc:ti:nativef-check    scheme
  • impc:ti:nativef-generics-check-args    scheme
  • impc:ti:nativef-generics-check-return-type    scheme
  • impc:ti:nativef-poly-check    scheme
  • impc:ti:nativef-poly-check-match-ftypes    scheme
  • impc:ti:nativef-poly-exact-check    scheme
  • impc:ti:null-check    scheme
  • impc:ti:null?-check    scheme
  • impc:ti:num-of-elts-check    scheme
  • impc:ti:numeric-check    scheme
  • impc:ti:obj-size-check    scheme
  • impc:ti:pdref-check    scheme
  • impc:ti:pointer-ref-check    scheme
  • impc:ti:pointer-ref-ptr-check    scheme
  • impc:ti:pointer-set-check    scheme
  • impc:ti:pop_zone-check    scheme
  • impc:ti:pref-check    scheme
  • impc:ti:printf-check    scheme
  • impc:ti:push_new_zone-check    scheme
  • impc:ti:push_zone-check    scheme
  • impc:ti:ref-check    scheme
  • impc:ti:ret-check    scheme
  • impc:ti:run-type-check    scheme
  • impc:ti:run-type-check*    scheme
  • impc:ti:scm_rt_check_string    scheme
  • impc:ti:set-check    scheme
  • impc:ti:sprintf-check    scheme
  • impc:ti:sscanf-check    scheme
  • impc:ti:stack-alloc-check    scheme
  • impc:ti:string-check    scheme
  • impc:ti:symbol-check    scheme
  • impc:ti:tuple-ref-check    scheme
  • impc:ti:tuple-ref-ptr-check    scheme
  • impc:ti:tuple-set-check    scheme
  • impc:ti:type-check    scheme
  • impc:ti:type-check-bound-lambda    scheme
  • impc:ti:vector-ref-check    scheme
  • impc:ti:vector-set-check    scheme
  • impc:ti:vector-shuffle-check    scheme
  • impc:ti:void-check    scheme
  • impc:ti:while-check    scheme
  • impc:ti:zone-alloc-check    scheme
  • match-check-variable    scheme
  • match-check-variable-predicates    scheme
  • match-result:bind    scheme
  • match-result:get    scheme
  • match-result:make    scheme
  • match-result:variables    scheme
  • my_checkbox_cb    xtlang
  • psystem-particle-check    xtlang
  • sys:load-preload-check    scheme
  • world_set_to_checkerboard    xtlang
  • xtmtest-print-results    scheme
  • xtmtest-print-results    scheme
  • xtmtest-reset-results    scheme
  • xtmtest-reset-results    scheme
  • xtmtest-result    macro
  • xtmtest-result    macro
  • xtmtest-result-body    scheme
  • xtmtest-result-body    scheme
  • xtmtest-update-test-result    scheme
  • xtmtest-update-test-result    scheme
  • zero_check    xtlang