Skip to content

Commit ef3b4d8

Browse files
committed
Update test titles to describe each case
1 parent cda424c commit ef3b4d8

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('Test Case 1', () => {
3+
test('Add and remove letters at the beginning and the end while making replacements', () => {
44
const from = 'kitten'
55
const to = 'sitting'
66
expect(calculateLevenshteinDp(from, to)).toBe(3)
77
})
88

9-
test('Test Case 2', () => {
9+
test('Replace contiguous letters at the middle of the words', () => {
1010
const from = 'book'
1111
const to = 'back'
1212
expect(calculateLevenshteinDp(from, to)).toBe(2)
1313
})
1414

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

0 commit comments

Comments
 (0)