1'use strict'; 2const common = require('../../common'); 3const assert = require('assert'); 4const { testNull } = require(`./build/${common.buildType}/test_number`); 5 6const expectedCreateResult = { 7 envIsNull: 'Invalid argument', 8 resultIsNull: 'Invalid argument', 9}; 10const expectedGetValueResult = { 11 envIsNull: 'Invalid argument', 12 resultIsNull: 'Invalid argument', 13 valueIsNull: 'Invalid argument', 14}; 15[ 'Double', 'Int32', 'Uint32', 'Int64' ].forEach((typeName) => { 16 assert.deepStrictEqual(testNull['create' + typeName](), expectedCreateResult); 17 assert.deepStrictEqual(testNull['getValue' + typeName](), expectedGetValueResult); 18}); 19