mirror of https://github.com/tc39/test262.git
22 lines
418 B
JavaScript
22 lines
418 B
JavaScript
// Copyright (c) 2014 Hank Yates. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
/**
|
|
* @description Testing Array#of when passed single argument
|
|
* @author Hank Yates (hankyates@gmail.com)
|
|
*/
|
|
|
|
runTestCase(function () {
|
|
var testArr = Array.of(3);
|
|
|
|
if (testArr.length !== 1) {
|
|
return false;
|
|
}
|
|
|
|
if (testArr[0] !== 3) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
|
|
});
|