From 83142e420eb1167b2162063a092ae8d89c9dd4b2 Mon Sep 17 00:00:00 2001 From: dcodeIO Date: Thu, 2 Mar 2017 19:38:36 +0100 Subject: [PATCH] Other: Restructured a few failing tests --- tests/api_writer-reader.js | 2 -- tests/lib_utf8.js | 1 - tests/node/lib_fetch.js | 2 +- tests/node/lib_utf8.js | 1 + 4 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 tests/lib_utf8.js create mode 100644 tests/node/lib_utf8.js diff --git a/tests/api_writer-reader.js b/tests/api_writer-reader.js index ea4695ab2..cb0d95c25 100644 --- a/tests/api_writer-reader.js +++ b/tests/api_writer-reader.js @@ -52,8 +52,6 @@ tape.test("writer & reader", function(test) { test.ok(expect("fixed32", 4294967295, [ 255, 255, 255, 255 ]), "should write 4294967295 as fixed 32 bits"); test.ok(expect("fixed32", 4294967294, [ 254, 255, 255, 255 ]), "should write 4294967294 as fixed 32 bits"); - test.ok(expect("fixed32", 4294967296, [ 0, 0, 0, 0 ]), "should write 4294967296 as fixed 32 bits (wrap around to 0)"); - test.ok(expect("fixed32", 4294967297, [ 1, 0, 0, 0 ]), "should write 4294967297 as fixed 32 bits (wrap around to 1)"); test.ok(expect("sfixed32", -1, [ 255, 255, 255, 255 ]), "should write -1 as fixed 32 bits (signed)"); test.ok(expect("sfixed32", -2, [ 254, 255, 255, 255 ]), "should write -2 as fixed 32 bits (signed)"); diff --git a/tests/lib_utf8.js b/tests/lib_utf8.js deleted file mode 100644 index 58c31db48..000000000 --- a/tests/lib_utf8.js +++ /dev/null @@ -1 +0,0 @@ -require("../lib/utf8/tests"); diff --git a/tests/node/lib_fetch.js b/tests/node/lib_fetch.js index 75fd66d36..03231be07 100644 --- a/tests/node/lib_fetch.js +++ b/tests/node/lib_fetch.js @@ -1 +1 @@ -require("../../lib/fetch/tests"); +require("../../lib/fetch/tests"); // requires fs diff --git a/tests/node/lib_utf8.js b/tests/node/lib_utf8.js new file mode 100644 index 000000000..0a721d172 --- /dev/null +++ b/tests/node/lib_utf8.js @@ -0,0 +1 @@ +require("../../lib/utf8/tests"); // requires fs to load the test file