~technomancy/fennel

Correct expected error loci in self-tests v1 PROPOSED

Rudolf Adamkovič: 1
 Correct expected error loci in self-tests

 1 files changed, 4 insertions(+), 6 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~technomancy/fennel/patches/51299/mbox | git am -3
Learn more about email & git

[PATCH] Correct expected error loci in self-tests Export this patch

---
 test/subtest/success.fnl | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/test/subtest/success.fnl b/test/subtest/success.fnl
index 915da4a..78b0ad0 100644
--- a/test/subtest/success.fnl
+++ b/test/subtest/success.fnl
@@ -18,12 +18,10 @@

(fn test-error []
  (t.error "bummer" #(error))
  (t.error (.. (if _G.jit "" "%./test/subtest/success%.fnl:31: ")
                     "oops")
                 #(error "oops"))
  (t.error (.. (if _G.jit "" "%./test/subtest/success%.fnl:42: ")
                     "oops")
                 #(error "oops: bummer"))
  (t.error (.. (if _G.jit "" "%./test/subtest/success%.fnl:30: ") "oops")
           #(error "oops"))
  (t.error (.. (if _G.jit "" "%./test/subtest/success%.fnl:40: ") "oops")
           #(error "oops: bummer"))
  (t.error "1" #(error 1))
  (t.error "%[0 1%]" #(error [0 1]))
  (t.error "dang" #(error) "aye yay"))
-- 
2.44.0
Rudolf Adamkovič <rudolf@adamkovic.org> writes: