Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c9c8d1b

Browse files
committed
Add more descriptive titles
1 parent ef3b4d8 commit c9c8d1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎Dynamic-Programming/tests/LevenshteinDistance.test.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import { calculateLevenshteinDp } from '../LevenshteinDistance'
22

3-
test('Add and remove letters at the beginning and the end while making replacements', () => {
3+
test('Should return the distance counting additions and removals', () => {
44
const from = 'kitten'
55
const to = 'sitting'
66
expect(calculateLevenshteinDp(from, to)).toBe(3)
77
})
88

9-
test('Replace contiguous letters at the middle of the words', () => {
9+
test('Should return the distance based on replacements in the middle of the strings', () => {
1010
const from = 'book'
1111
const to = 'back'
1212
expect(calculateLevenshteinDp(from, to)).toBe(2)
1313
})
1414

15-
test('Compare properly strings with different length', () => {
15+
test('Should return the distance for strings with different length', () => {
1616
const from = 'sunday'
1717
const to = 'saturday'
1818
expect(calculateLevenshteinDp(from, to)).toBe(3)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /