get rid of redundant tester-type

This commit is contained in:
Anton Dyudin 2018-03-09 17:31:44 -08:00
parent c73095af8a
commit a07ca03bb6
6 changed files with 6 additions and 10 deletions

View File

@ -61,11 +61,7 @@
:> # %per-test
:> data initialized on a per-test basis.
::
++ init-test
|= {cookie/@uvJ}
~(. tester `(list tape)`~ cookie 10 0)
::
++ tester-type _(init-test `@uvJ`0)
++ init-test |=({eny/@uvJ} %*(. tester eny eny, check-iterations 10))
::
++ tester
|_ $: error-lines=(list tape) :< output messages

View File

@ -1,6 +1,6 @@
/+ new-hoon, tester
=, ls:new-hoon
|_ tester-type:tester
|_ _tester:tester
++ test-head
(expect-eq (head [1 ~]) 1)
::

View File

@ -2,7 +2,7 @@
=, dct:new-hoon
=+ four=(from-list [[1 "one"] [2 "two"] [3 "three"] [4 "four"] ~])
=+ three=(from-list [[1 "one"] [2 "two"] [3 "three"] ~])
|_ tester-type:tester
|_ _tester:tester
++ test-empty
(expect-eq (empty four) %.n)
::

View File

@ -1,6 +1,6 @@
/+ new-hoon, tester
=, myb:new-hoon
|_ tester-type:tester
|_ _tester:tester
++ test-from-list-null
(expect-eq (from-list ~) ~)
::

View File

@ -2,7 +2,7 @@
/+ new-hoon, tester
=, thr:new-hoon
=/ data/(list (either @u tape)) [[%& 1] [%| "one"] [%& 2] [%| "two"] ~]
|_ tester-type:tester
|_ _tester:tester
++ test-apply
%+ expect-eq
%^ apply `(either @u tape)`[%| "one"]

View File

@ -72,7 +72,7 @@
d79d.c266.f6a5.be6b.b0e4.a92e.ceeb.aeb1
==
::
|_ tst=tester-type:tester
|_ tst=_tester:tester
::
:: check a list of bytelength-answer pairs to see if
:: they match the output given by {hash} for the