diff options
| author | RblSb <msrblsb@gmail.com> | 2025-08-14 02:53:59 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2025-08-15 07:03:17 +0300 |
| commit | e01ed5f5431551f8b159b4fd491c670efeca57ee (patch) | |
| tree | 78737545fd27cce482cbfdd059aa72fe52ecc515 /test/tests | |
| parent | 6b97957566fa8a01b7fa37fb735de19ee442c297 (diff) | |
Prefer original audio tracks
Diffstat (limited to 'test/tests')
| -rw-r--r-- | test/tests/TestServer.hx | 6 | ||||
| -rw-r--r-- | test/tests/TestTimer.hx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/tests/TestServer.hx b/test/tests/TestServer.hx index f9074b3..2d0b71d 100644 --- a/test/tests/TestServer.hx +++ b/test/tests/TestServer.hx @@ -28,7 +28,7 @@ class TestServer extends Test { Assert.equals("File Приветмир! not found.", data); }); request('$url/Ы%ы%00ы!', data -> { - Assert.equals("<!DOCTYPE html>", splitLines(data)[0]); + Assert.equals("<!DOCTYPE html>", splitLines(data)[1]); }); request('$url/video/skins/default.php?dir_inc=/etc/passwd%00', data -> { var line = "File video/skins/default.php not found."; @@ -36,13 +36,13 @@ class TestServer extends Test { Assert.equals(line, data); }); request('$url/%20', data -> { - Assert.equals("<!DOCTYPE html>", splitLines(data)[0]); + Assert.equals("<!DOCTYPE html>", splitLines(data)[1]); }); request('$url/build/../../server.js', data -> { Assert.equals("File server.js not found.", data); }); request('$url/?meh', data -> { - Assert.equals("<!DOCTYPE html>", splitLines(data)[0]); + Assert.equals("<!DOCTYPE html>", splitLines(data)[1]); async.done(); }); } diff --git a/test/tests/TestTimer.hx b/test/tests/TestTimer.hx index 2e6e9e8..ce8723f 100644 --- a/test/tests/TestTimer.hx +++ b/test/tests/TestTimer.hx @@ -27,7 +27,7 @@ class TestTimer extends Test { Assert.equals(false, timer.isPaused()); Assert.equals(true, timer.isStarted); timer.stop(); - Assert.equals(0, timer.getTime()); + Assert.equals(0.0, timer.getTime()); Assert.equals(true, timer.isPaused()); Assert.equals(false, timer.isStarted); timer.start(); |
