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

Function expectPositive

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

Source from the content-addressed store, hash-verified

1import { isAbbreviation } from '../Abbreviation.js'
2
3const expectPositive = (word, abbr) =>
4 expect(isAbbreviation(word, abbr)).toBe(true)
5const expectNegative = (word, abbr) =>
6 expect(isAbbreviation(word, abbr)).toBe(false)
7

Callers 1

Calls 1

isAbbreviationFunction · 0.90

Tested by

no test coverage detected