doublecache.js revision 6:5a1b0714df0e
129088Smarkm/*
229088Smarkm * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
329088Smarkm * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
429088Smarkm *
529088Smarkm * This code is free software; you can redistribute it and/or modify it
629088Smarkm * under the terms of the GNU General Public License version 2 only, as
729088Smarkm * published by the Free Software Foundation.
829088Smarkm *
929088Smarkm * This code is distributed in the hope that it will be useful, but WITHOUT
1029088Smarkm * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1129088Smarkm * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1229088Smarkm * version 2 for more details (a copy is included in the LICENSE file that
1329088Smarkm * accompanied this code).
1429088Smarkm *
1529088Smarkm * You should have received a copy of the GNU General Public License version
1629088Smarkm * 2 along with this work; if not, write to the Free Software Foundation,
1729088Smarkm * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1829088Smarkm *
1929088Smarkm * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2029088Smarkm * or visit www.oracle.com if you need additional information or have any
2129088Smarkm * questions.
2229088Smarkm */
2329088Smarkm
2429088Smarkm/**
2529088Smarkm * Test double caching.
2629088Smarkm *
2729088Smarkm * @test
2829088Smarkm * @run
2929088Smarkm */
3029088Smarkm
3129088Smarkmvar x = [
3229088Smarkm        "number array spoiler",
3329088Smarkm        -200,
34114630Sobrien        -100,
3529088Smarkm        -0.5,
3629181Smarkm        -0.25,
3787139Smarkm        0,
38114630Sobrien        0.25,
39114630Sobrien        0.5,
40114630Sobrien        100,
4129088Smarkm        200,
4229088Smarkm
4377095Sdillon        -200,
4429088Smarkm        -100,
4529088Smarkm        -0.5,
4629088Smarkm        -0.25,
4729088Smarkm        0,
4887139Smarkm        0.25,
4987139Smarkm        0.5,
5087139Smarkm        100,
5129088Smarkm        200
5229088Smarkm        ];
5387139Smarkm
5487139Smarkmfor (i in x) print(x[i]);
5587139Smarkm