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