Fixed the final missing feature: if -o or --output is specified on the
command line, it is now honoured.
This commit is contained in:
parent
fd36f8e1ca
commit
6b124ec989
3 changed files with 20 additions and 6 deletions
|
|
@ -7,3 +7,9 @@
|
|||
(is (= (top-and-tail '("a" "b" "c" "?" "d" "e" "f" "." "g" "h" "i" "!")) '("d" "e" "f" "." "g" "h" "i" "!")))
|
||||
(is (= (top-and-tail '("a" "b" "c" "?" "d" "e" "f" "." "g" "h" "i")) '("d" "e" "f" ".")))
|
||||
))
|
||||
|
||||
(deftest write-output-test
|
||||
(testing "Test output to file"
|
||||
(is (= (do ;; (spit "test.out" "")
|
||||
(write-output '("Test" "output" ".") "test.out")
|
||||
(slurp "test.out"))) "Test output.")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue