@pipcook/boa-cloud
Version:
Use Python modules seamlessly in Node.js
16 lines (14 loc) • 372 B
JavaScript
const test = require('ava');
const boa = require('../../');
const np = boa.import('numpy');
test('numpy.empty: return a new array of given shape and type, without initializing entries.', t => {
{
const r = np.empty([2, 2]);
console.log(`${r}`);
}
{
const r = np.empty([2, 2], boa.kwargs({ dtype: np.int }));
console.log(`${r}`);
}
t.pass();
});