projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
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();
+});