MCPcopy Create free account
hub / github.com/TheAlgorithms/JavaScript / expectNegative

Function expectNegative

Dynamic-Programming/tests/Abbreviation.test.js:5–6  ·  view source on GitHub ↗
(word, abbr)

Source from the content-addressed store, hash-verified

3const expectPositive = (word, abbr) =>
4 expect(isAbbreviation(word, abbr)).toBe(true)
5const expectNegative = (word, abbr) =>
6 expect(isAbbreviation(word, abbr)).toBe(false)
7
8describe('Abbreviation - Positive Tests', () => {
9 test('it should correctly abbreviate or transform the source string to match the target string', () => {

Callers 1

Calls 1

isAbbreviationFunction · 0.90

Tested by

no test coverage detected