aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/tests/TestServer.hx6
-rw-r--r--test/tests/TestTimer.hx2
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();
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage