js/src/tests/test262/intl402/ch11/11.3/11.3.2_FN_1.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/tests/test262/intl402/ch11/11.3/11.3.2_FN_1.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +// Copyright 2012 Google Inc.  All rights reserved.
     1.5 +// This code is governed by the BSD license found in the LICENSE file.
     1.6 +
     1.7 +/**
     1.8 + * @description Tests that Intl.NumberFormat.prototype.format
     1.9 + * doesn't treat all numbers as negative.
    1.10 + * @author: Roozbeh Pournader
    1.11 + */
    1.12 +
    1.13 +var formatter = new Intl.NumberFormat();
    1.14 +  
    1.15 +if (formatter.format(1) === formatter.format(-1)) {
    1.16 +    $ERROR('Intl.NumberFormat is formatting 1 and -1 the same way.');
    1.17 +}
    1.18 +
    1.19 +if (formatter.format(-0) !== formatter.format(0)) {
    1.20 +    $ERROR('Intl.NumberFormat is formatting signed zeros differently.');
    1.21 +}
    1.22 +

mercurial