summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/String/prototype/includes/String.prototype.includes_FailMissingLetter.js
blob: c9eb1245a733631d38b1b1156139c316854aea8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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.
features: [String.prototype.includes]
---*/

assert.sameValue('word'.includes('a', 0), false, '"word".includes("a", 0)');

reportCompare(0, 0);