add a nightmarish test
This commit is contained in:
parent
0e215c7475
commit
816be54de0
2 changed files with 11 additions and 1 deletions
|
@ -191,3 +191,5 @@
|
||||||
:mul (pretty-mul inner)
|
:mul (pretty-mul inner)
|
||||||
:add (pretty-add inner))))
|
:add (pretty-add inner))))
|
||||||
([op _] (with-inc-row-indices op)))
|
([op _] (with-inc-row-indices op)))
|
||||||
|
|
||||||
|
;TODO: better row formatting (each column is only as wide as the longest in the column)
|
||||||
|
|
|
@ -26,4 +26,12 @@
|
||||||
(map-matrix int
|
(map-matrix int
|
||||||
(auto-final
|
(auto-final
|
||||||
[[2 3 15]
|
[[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]])))))
|
||||||
|
|
Loading…
Reference in a new issue