diff -r 000000000000 -r 6474c204b198 js/src/tests/test262/intl402/ch11/11.3/11.3.2_FN_1.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/tests/test262/intl402/ch11/11.3/11.3.2_FN_1.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,19 @@ +// 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.'); +} +