Add approximatelyEqual

This commit is contained in:
Angelos Chalaris
2018-02-14 12:47:13 +02:00
parent a8caa9c75d
commit ba59e8020a
5 changed files with 46 additions and 4 deletions

View File

@ -1,4 +1,4 @@
Test log for: Wed Feb 14 2018 12:33:42 GMT+0200 (GTB Standard Time)
Test log for: Wed Feb 14 2018 12:46:59 GMT+0200 (GTB Standard Time)
> 30-seconds-of-code@0.0.1 test G:\My Files\git Repositories\30-seconds-of-code
> tape test/**/*.test.js | tap-spec
@ -11,6 +11,14 @@ Test log for: Wed Feb 14 2018 12:33:42 GMT+0200 (GTB Standard Time)
√ Works for single-letter strings
√ Works for empty strings
Testing approximatelyEqual
√ approximatelyEqual is a Function
√ Works for PI / 2
√ Works for 0.1 + 0.2 === 0.3
√ Works for exactly equal values
√ Works for a custom epsilon
Testing arrayToHtmlList
√ arrayToHtmlList is a Function
@ -1839,8 +1847,8 @@ Test log for: Wed Feb 14 2018 12:33:42 GMT+0200 (GTB Standard Time)
√ Works with multiple promises
total: 919
passing: 919
duration: 2.4s
total: 924
passing: 924
duration: 2.5s