wagner-fisher & werner algorithms working
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package editdistance
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestWagnerFisher(t *testing.T) {
|
||||
a := "abc"
|
||||
b := "abd"
|
||||
if WagnerFisher(a, b) != 1 {
|
||||
t.Errorf("WagnerFisher was incorrect, got %d, want %d.", WagnerFisher(a, b), 1)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user