mirror of
https://github.com/janet-lang/janet
synced 2026-07-25 12:38:52 +00:00
Line endings in tests.
This commit is contained in:
@@ -856,13 +856,13 @@
|
||||
(def actual @"")
|
||||
(with-dyns [:err actual *err-color* true]
|
||||
(test name peg input expected-matches))
|
||||
(assert (deep= (string actual) expected-stderr)))
|
||||
(assert (deep= (string/replace-all "\r" "" actual) expected-stderr)))
|
||||
|
||||
(defn test-stderr-no-color [name peg input expected-matches expected-stderr]
|
||||
(def actual @"")
|
||||
(with-dyns [:err actual *err-color* false]
|
||||
(test name peg input expected-matches))
|
||||
(assert (deep= (string actual) expected-stderr)))
|
||||
(assert (deep= (string/replace-all "\r" "" actual) expected-stderr)))
|
||||
|
||||
(test-stderr "?? long form"
|
||||
'(* (debug) "abc")
|
||||
|
||||
Reference in New Issue
Block a user