2014-01-27 00:53:44 +01:00
|
|
|
// Copyright (c) 2014 Hank Yates. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
2014-07-22 01:09:02 +02:00
|
|
|
|
|
|
|
/*---
|
2015-02-10 22:01:39 +01:00
|
|
|
es6id: 22.1.2.3_T2
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Testing Array#of when passed single argument
|
|
|
|
author: Hank Yates (hankyates@gmail.com)
|
|
|
|
includes: [runTestCase.js]
|
|
|
|
---*/
|
2014-01-27 00:53:44 +01:00
|
|
|
|
|
|
|
runTestCase(function () {
|
|
|
|
var testArr = Array.of(3);
|
|
|
|
|
|
|
|
if (testArr.length !== 1) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (testArr[0] !== 3) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
});
|