Version 1
[yaffs-website] / node_modules / typedarray / test / tarray.js
diff --git a/node_modules/typedarray/test/tarray.js b/node_modules/typedarray/test/tarray.js
new file mode 100644 (file)
index 0000000..df596a3
--- /dev/null
@@ -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();
+});