mirror of
https://github.com/tc39/test262.git
synced 2025-07-24 06:25:30 +02:00
Add Number.prototype.toFixed return value test
Adds a test to ensure that toFixed returns a string value
This commit is contained in:
parent
6391689a6b
commit
5d69e30929
11
test/built-ins/Number/prototype/toFixed/return-type.js
vendored
Normal file
11
test/built-ins/Number/prototype/toFixed/return-type.js
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// Copyright (C) 2017 K. Adam White. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
es6id: 20.1.3.3
|
||||||
|
esid: sec-number.prototype.tofixed
|
||||||
|
description: >
|
||||||
|
Number.prototype.toFixed returns a string value
|
||||||
|
---*/
|
||||||
|
|
||||||
|
assert.sameValue(typeof (123.456).toFixed(), "string");
|
Loading…
x
Reference in New Issue
Block a user