11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst common = require('../../common'); 31cb0ef41Sopenharmony_ciconst assert = require('assert'); 41cb0ef41Sopenharmony_ciconst { testNull } = require(`./build/${common.buildType}/test_number`); 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ciconst expectedCreateResult = { 71cb0ef41Sopenharmony_ci envIsNull: 'Invalid argument', 81cb0ef41Sopenharmony_ci resultIsNull: 'Invalid argument', 91cb0ef41Sopenharmony_ci}; 101cb0ef41Sopenharmony_ciconst expectedGetValueResult = { 111cb0ef41Sopenharmony_ci envIsNull: 'Invalid argument', 121cb0ef41Sopenharmony_ci resultIsNull: 'Invalid argument', 131cb0ef41Sopenharmony_ci valueIsNull: 'Invalid argument', 141cb0ef41Sopenharmony_ci}; 151cb0ef41Sopenharmony_ci[ 'Double', 'Int32', 'Uint32', 'Int64' ].forEach((typeName) => { 161cb0ef41Sopenharmony_ci assert.deepStrictEqual(testNull['create' + typeName](), expectedCreateResult); 171cb0ef41Sopenharmony_ci assert.deepStrictEqual(testNull['getValue' + typeName](), expectedGetValueResult); 181cb0ef41Sopenharmony_ci}); 19