exercism / exercism/common-lisp-test-runner

Test runner sometimes not reporting correct code for test pass fail

オープン
#39 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
x:action/fix x:module/test-runner x:size/large
主要言語
Common Lisp
スター
1
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。