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
4
bjo.lock
4
bjo.lock
|
|
@ -1,5 +1,5 @@
|
||||||
(lock
|
(lock
|
||||||
(locked
|
(locked
|
||||||
(package (name (bjoterm)) (version "0.1.0")
|
(package (name (bjoterm)) (version "0.1.1")
|
||||||
(source (git (url "https://rikspucko.koketteriet.se/bjoli/bjoterm.git")))
|
(source (git (url "https://rikspucko.koketteriet.se/bjoli/bjoterm.git")))
|
||||||
(commit "5a8a441cbc9a230f0efdf263c8d52b749e644be596c22ab0b110e9d464b1d468"))))
|
(commit "dc8a3325b88999134a06dca9bd8e576a309a75a86d638550cea2dcc4a7e3cb42"))))
|
||||||
|
|
|
||||||
|
|
@ -10,5 +10,5 @@
|
||||||
;; The line editor and the terminal. To work on both at once, use
|
;; The line editor and the terminal. To work on both at once, use
|
||||||
;; (source (path (dir "../bjoterm"))) instead.
|
;; (source (path (dir "../bjoterm"))) instead.
|
||||||
(package (name (bjoterm))
|
(package (name (bjoterm))
|
||||||
(version (version-at-least "0.1.0"))
|
(version (version-at-least "0.1.1"))
|
||||||
(source (git (url "https://rikspucko.koketteriet.se/bjoli/bjoterm.git"))))))
|
(source (git (url "https://rikspucko.koketteriet.se/bjoli/bjoterm.git"))))))
|
||||||
|
|
|
||||||
2
plan.org
2
plan.org
|
|
@ -441,7 +441,7 @@ User commands, compiled, loaded into the shell at start-up. Needs
|
||||||
set either; the start-up file cannot use the user's commands. A bjo that
|
set either; the start-up file cannot use the user's commands. A bjo that
|
||||||
is not there gives a message that says what to set.
|
is not there gives a message that says what to set.
|
||||||
- Measured: 132 ms for ~bjosh -c true~ with the example package loaded.
|
- Measured: 132 ms for ~bjosh -c true~ with the example package loaded.
|
||||||
- Tests: ~tests/extension.bjo~, 30 checks. The other tests: syntax 72,
|
- Tests: ~tests/extension.bjo~, 32 checks. The other tests: syntax 72,
|
||||||
expand 26, values 59, editor 24, run 60, interactive 16.
|
expand 26, values 59, editor 24, run 60, interactive 16.
|
||||||
|
|
||||||
** Phase 5: later
|
** Phase 5: later
|
||||||
|
|
|
||||||
|
|
@ -177,6 +177,12 @@
|
||||||
|
|
||||||
(write-source (commands "after reload"))
|
(write-source (commands "after reload"))
|
||||||
(expect-true "reload builds and loads" (string-contains? (c "reload; help") "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"))
|
(if (not (file-exists? "/usr/bin/script"))
|
||||||
(println "skipped: the prompt (no script command)")
|
(println "skipped: the prompt (no script command)")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue