test262/test/suite/intl402/ch11/11.3/11.3.2_FN_1.js
2012-08-22 18:16:59 -07:00

20 lines
564 B
JavaScript

// Copyright 2012 Google Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @description Tests that Intl.NumberFormat.prototype.format
* doesn't treat all numbers as negative.
* @author: Roozbeh Pournader
*/
var formatter = new Intl.NumberFormat();
if (formatter.format(1) === formatter.format(-1)) {
$ERROR('Intl.NumberFormat is formatting 1 and -1 the same way.');
}
if (formatter.format(-0) !== formatter.format(0)) {
$ERROR('Intl.NumberFormat is formatting signed zeros differently.');
}