summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/concat-stream/node_modules/typedarray/test/tarray.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/node_modules/concat-stream/node_modules/typedarray/test/tarray.js')
-rw-r--r--tools/eslint/node_modules/concat-stream/node_modules/typedarray/test/tarray.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/eslint/node_modules/concat-stream/node_modules/typedarray/test/tarray.js b/tools/eslint/node_modules/concat-stream/node_modules/typedarray/test/tarray.js
new file mode 100644
index 0000000000..df596a34f2
--- /dev/null
+++ b/tools/eslint/node_modules/concat-stream/node_modules/typedarray/test/tarray.js
@@ -0,0 +1,10 @@
+var TA = require('../');
+var test = require('tape');
+
+test('tiny u8a test', function (t) {
+ var ua = new(TA.Uint8Array)(5);
+ t.equal(ua.length, 5);
+ ua[1] = 256 + 55;
+ t.equal(ua[1], 55);
+ t.end();
+});