;; Dirty tracking tests are in box-tests.lisp (same test suite) (in-package :cl-tui-box-test) (test dirty-mixin-default-is-dirty "A dirty-mixin starts as dirty" (let ((c (make-instance 'dirty-mixin))) (is-true (dirty-p c) "new component should be dirty"))) (test mark-clean-clears-dirty "mark-clean sets dirty to nil" (let ((c (make-instance 'dirty-mixin))) (mark-clean c) (is-false (dirty-p c) "after mark-clean, should not be dirty"))) (test mark-dirty-sets-dirty "mark-dirty sets dirty to t" (let ((c (make-instance 'dirty-mixin))) (mark-clean c) (mark-dirty c) (is-true (dirty-p c) "after mark-dirty, should be dirty again")))