exercism / exercism/common-lisp-test-runner

Test runner sometimes not reporting correct code for test pass fail

Offen
#39 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
x:action/fix x:module/test-runner x:size/large
Vorherrschende Sprache
Common Lisp
Sterne
1
Forks
5
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

For example run pizza-pier with the stub code and the browser will show 4 pass and 9 fail. An example of a pass shows:

```
Test 5
Calculates if some number of pizzas can be evenly divided between friends (2/10)

CODE RUN

(is-true (fair-share-p 3 4))
(is-false (fair-share-p 2 3))
(is-false (fair-share-p 4 5))
(is-true (fair-share-p 4 8))
(is-true (fair-share-p 1 4))
(is-true (fair-share-p 21 7))
(is-false (fair-share-p 11 10))
(is-true (fair-share-p 0 5))
(is-false (fair-share-p 17 5))
(is-true (fair-share-p 16 64))
```

an example fo a failure:

```
Test 1
Calculate the grams of dough needed for given number and size of pizzas (1/1)

CODE RUN

(is (= (dough-calculator 4 30) 1648))
(is (= (dough-calculator 2 35) 895))
(is (= (dough-calculator 6 20) 2048))
(is (= (dough-calculator 1 15) 306))
(is (= (dough-calculator 5 10) 1353))
TEST ERROR

The value
NIL
is not of type
NUMBER
when binding SB-KERNEL::X
```

My guess is that this is happening when a fiveam test includes multiple assertions. Maybe the test runner is showing the entire test for the failure of a single assertion?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.