Przeglądaj źródła

Fix timeouts for short doubles

Timeouts apparently don't actually work unless you use a test generator.
Which makes sense in hindsight.
pull/65/head 0.11.0
Paul J. Davis 11 lat temu
rodzic
commit
eb70deb831
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      test/jiffy_10_short_double_tests.erl

+ 2
- 2
test/jiffy_10_short_double_tests.erl Wyświetl plik

@ -12,9 +12,9 @@
filename() -> "../test/cases/short-doubles.txt".
short_double_test() ->
short_double_test_() ->
{ok, Fd} = file:open(filename(), [read, binary, raw]),
{"all doubles round trip", {timeout, 300, ?assertEqual(0, run(Fd, 0))}}.
{timeout, 300, ?_assertEqual(0, run(Fd, 0))}.
run(Fd, Acc) ->

Ładowanie…
Anuluj
Zapisz