parinfer/tests.lisp
in-package#:luv.tests
deftestparinfer-treats-escaped-symbol-syntax-as-reader-syntax
dolist
source'
"(defparameter |foo(bar| 1)\n""(defparameter foo\\(bar 1)\n""(defparameter |foo\\|bar(baz| 1)\n"
let
report
ok
sly-client.parinfer:indent-mode-report-source-balanced-preport
ok
string=source
sly-client.parinfer:indent-mode-report-candidatereport
ok
deftestparinfer-does-not-certify-an-unterminated-bar-symbol
deftestparinfer-still-repairs-an-ordinary-missing-close
let*
source"(defun probe ()\n (+ 1 2)\n"
candidate
report
ok
not
string=sourcecandidate
ok
sly-client.parinfer:indent-mode-report-source-balanced-preport
defun analyze-indent-mode
(text)Analyze TEXT and return an INDENT-MODE-REPORT. The report separates source balance from the indentation-driven candidate so callers can surface reader-balanced indentation conflicts without treating them as safe rewrites.
defun apply-indent-mode
(text)Repair TEXT only when it has a validated paren-balance problem. Balanced source is returned unchanged, even when indentation suggests a different tree. Use ANALYZE-INDENT-MODE or INDENT-MODE-CANDIDATE to inspect those suspicious-but-balanced cases.
define-arithmetic-operator not
Logical negation of one test or raw truth value.