We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cda424c commit 420471aCopy full SHA for 420471a
Dynamic-Programming/tests/LevenshteinDistance.test.js
@@ -1,18 +1,18 @@
1
import { calculateLevenshteinDp } from '../LevenshteinDistance'
2
3
-test('Test Case 1', () => {
+test('Should return the distance counting additions and removals', () => {
4
const from = 'kitten'
5
const to = 'sitting'
6
expect(calculateLevenshteinDp(from, to)).toBe(3)
7
})
8
9
-test('Test Case 2', () => {
+test('Should return the distance based on replacements in the middle of the strings', () => {
10
const from = 'book'
11
const to = 'back'
12
expect(calculateLevenshteinDp(from, to)).toBe(2)
13
14
15
-test('Test Case 3', () => {
+test('Should return the distance for strings with different length', () => {
16
const from = 'sunday'
17
const to = 'saturday'
18
0 commit comments