mirror of https://github.com/tc39/test262.git
23 lines
468 B
JavaScript
23 lines
468 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 Strings
|
|
* @author Hank Yates (hankyates@gmail.com)
|
|
*/
|
|
|
|
runTestCase(function () {
|
|
var testArr = Array.of('testString', 'anotherTestString');
|
|
|
|
if (testArr[0] !== 'testString') {
|
|
return false;
|
|
}
|
|
|
|
if (testArr[1] !== 'anotherTestString') {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
|
|
});
|