diff --git a/bjo.lock b/bjo.lock index 90193a3..e8052ad 100644 --- a/bjo.lock +++ b/bjo.lock @@ -1,5 +1,5 @@ (lock (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"))) - (commit "5a8a441cbc9a230f0efdf263c8d52b749e644be596c22ab0b110e9d464b1d468")))) + (commit "dc8a3325b88999134a06dca9bd8e576a309a75a86d638550cea2dcc4a7e3cb42")))) diff --git a/manifest.bjodat b/manifest.bjodat index 3e2aa82..fd16fbe 100644 --- a/manifest.bjodat +++ b/manifest.bjodat @@ -10,5 +10,5 @@ ;; The line editor and the terminal. To work on both at once, use ;; (source (path (dir "../bjoterm"))) instead. (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")))))) diff --git a/plan.org b/plan.org index 7ce0004..c8212db 100644 --- a/plan.org +++ b/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 is not there gives a message that says what to set. - 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. ** Phase 5: later diff --git a/tests/extension.bjo b/tests/extension.bjo index 7e0cdd4..ac74c01 100644 --- a/tests/extension.bjo +++ b/tests/extension.bjo @@ -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)")