summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/String/prototype/includes/String.prototype.includes_Success.js
blob: 1651d00988e1b93f6498d280a7bad99a93f7d400 (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 true when called on 'word' and passed 'w' and
    the location 0.
features: [String.prototype.includes]
---*/

assert.sameValue('word'.includes('w', 0), true, '"word".includes("w", 0)');

reportCompare(0, 0);