add a nightmarish test

This commit is contained in:
mehbark 2023-01-15 20:46:31 -05:00
parent 0e215c7475
commit 816be54de0
2 changed files with 11 additions and 1 deletions

View file

@ -191,3 +191,5 @@
:mul (pretty-mul inner)
:add (pretty-add inner))))
([op _] (with-inc-row-indices op)))
;TODO: better row formatting (each column is only as wide as the longest in the column)

View file

@ -26,4 +26,12 @@
(map-matrix int
(auto-final
[[2 3 15]
[1 -1 0]]))))))
[1 -1 0]])))))
(testing "A nightmare"
; https://www.desmos.com/calculator/17l6cwgtgc
(is (= [[1 0 0 -14/5]
[0 1 0 6/5]
[0 0 1 46/5]]
(auto-final [[3 1 1 2]
[1 -2 1 4]
[-1 1 0 4]])))))