summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/String/prototype/includes/String.prototype.includes_FailLocation.js
blob: e8415f3e1e618aa08bf3791405fcbabb7bfe0676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) 2014 Ryan Lewis. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
author: Ryan Lewis
description: >
    String should return false if a letter is not found in the word
    starting from the passed location.
features: [String.prototype.includes]
---*/

assert.sameValue('word'.includes('o', 3), false, '"word".includes("o", 3)');

reportCompare(0, 0);