From 5909c65345f53a4e054ddd5a1cecc6b7573966c4 Mon Sep 17 00:00:00 2001 From: larissayvette Date: Fri, 13 Jan 2017 18:45:25 +0100 Subject: [PATCH] test: delete duplicate test of noAssert in readUInt* PR-URL: https://github.com/nodejs/node/pull/10791 Reviewed-By: Rich Trott Reviewed-By: James M Snell Reviewed-By: Sakthipriyan Vairamani --- test/parallel/test-buffer-readuintbe.js | 24 ------------------------ test/parallel/test-buffer-readuintle.js | 24 ------------------------ 2 files changed, 48 deletions(-) delete mode 100644 test/parallel/test-buffer-readuintbe.js delete mode 100644 test/parallel/test-buffer-readuintle.js diff --git a/test/parallel/test-buffer-readuintbe.js b/test/parallel/test-buffer-readuintbe.js deleted file mode 100644 index 162e9fea27a14f..00000000000000 --- a/test/parallel/test-buffer-readuintbe.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; -require('../common'); -const assert = require('assert'); - -// testing basic functionality of readUIntBE() - -const buf = Buffer.from([42, 84, 168, 127]); -const result = buf.readUIntBE(2); - -assert.strictEqual(result, 84); - -assert.throws( - () => { - buf.readUIntBE(5); - }, - /Index out of range/ -); - -assert.doesNotThrow( - () => { - buf.readUIntBE(5, 0, true); - }, - 'readUIntBE() should not throw if noAssert is true' -); diff --git a/test/parallel/test-buffer-readuintle.js b/test/parallel/test-buffer-readuintle.js deleted file mode 100644 index 982adb8607eaa1..00000000000000 --- a/test/parallel/test-buffer-readuintle.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; -require('../common'); -const assert = require('assert'); - -// testing basic functionality of readUIntLE() - -const buf = Buffer.from([42, 84, 168, 127]); -const result = buf.readUIntLE(2); - -assert.strictEqual(result, 168); - -assert.throws( - () => { - buf.readUIntLE(5); - }, - /Index out of range/ -); - -assert.doesNotThrow( - () => { - buf.readUIntLE(5, 0, true); - }, - 'readUIntLE() should not throw if noAssert is true' -);