// Copyright 2012 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es5id: 11.3.2_FN_1 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.'); }