bjoterm 0.1.1, for prompts with line breaks; test reload in one shell
- Depends on bjoterm 0.1.1: a prompt may contain line breaks. - tests/extension.bjo: a change, then reload, in the same bjosh runs the new code. Bjolang's (std plugin) now loads a rebuilt module anew. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
817de694b0
commit
77c6d7977a
4 changed files with 10 additions and 4 deletions
|
|
@ -177,6 +177,12 @@
|
|||
|
||||
(write-source (commands "after reload"))
|
||||
(expect-true "reload builds and loads" (string-contains? (c "reload; help") "after reload"))
|
||||
(def in-one-shell
|
||||
(c (str "help; sed -i 's/after reload/changed in this shell/' " source "; reload; help")))
|
||||
(expect-true "reload in the same shell: the help before"
|
||||
(string-contains? in-one-shell "tw after reload"))
|
||||
(expect-true "and the new code after it"
|
||||
(string-contains? in-one-shell "tw changed in this shell"))
|
||||
|
||||
(if (not (file-exists? "/usr/bin/script"))
|
||||
(println "skipped: the prompt (no script command)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue