ohctechv3/.svn/pristine/7e/7ee23958802c1b6c81d68d44bb3fafd023e2b382.svn-base
2024-10-28 15:03:36 +05:30

17 lines
382 B
Plaintext

'use strict';
var test = require('tape');
var names = require('../');
test('typed array names', function (t) {
for (var i = 0; i < names.length; i++) {
t.equal(typeof names[i], 'string', 'is string');
t.equal(names.indexOf(names[i]), i, 'is unique');
t.match(typeof global[names[i]], /^(?:function|undefined)$/, 'is a global function, or `undefined`');
}
t.end();
});