1 // Copyright (c) 2014 Ryan Lewis. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
7 endsWith should return true when called on 'word' and passed 'd'
8 and with an endPosition of 25.
9 features: [String.prototype.endsWith]
12 assert.sameValue('word'.endsWith('d', 25), true, '"word".endsWith("d", 25)');