| OLD | NEW |
| (Empty) | |
| 1 A simple unit testing for audio-testing.js and js-test.js |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 PASS Zero is equal to 0. |
| 7 PASS One is not equal to 0. |
| 8 PASS Expected SNR (110) is greater than or equal to 100. |
| 9 PASS Maximum error value (0.000001) is less than or equal to 0.00001. |
| 10 FAIL max error (0.000001) is not less than or equal to -1. |
| 11 PASS One point double zero one is 1 within a relative error of 0.1. |
| 12 FAIL Two is not 1 within a relative error of 0.1: 2 with relative error 1. |
| 13 PASS [2, 2, 2] contains only the constant 2. |
| 14 PASS [1, 2, 3] is identical to the array [1,2,3]. |
| 15 PASS My array equals [0.1,0.2] with an element-wise tolerance of 0.02. |
| 16 PASS My random array contains all the expected values in the correct order: [1,3
,2]. |
| 17 PASS successfullyParsed is true |
| 18 |
| 19 TEST COMPLETE |
| 20 |
| OLD | NEW |