blob: 1c2995a0af9286658f7878e96a05ec96188fc23c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// |reftest| skip-if(!this.hasOwnProperty("Tuple"))
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Tuple.prototype.indexOf when fromIndex is floating point number
---*/
var a = #[1,2,3];
assertEq(a.indexOf(3, 0.49), 2);
assertEq(a.indexOf(1, 0.51), 0);
assertEq(a.indexOf(1, 1.51), -1);
reportCompare(0, 0);
|