This commit is contained in:
danawan
2025-09-25 16:10:34 +07:00
parent 54a95a0b55
commit 189caa5d5d
3 changed files with 87 additions and 1 deletions

View File

@@ -590,6 +590,9 @@ def validate_fuzzy_phonetic(a):
def validate_fuzzy_caver(a):
return a == "AWSM111111"
def validate_fuzzy_rsoundex(a):
return a == "A03080"
def test_fuzzy():
limbo = TestTursoShell()
ext_path = "./target/debug/liblimbo_fuzzy"
@@ -644,6 +647,11 @@ def test_fuzzy():
validate_fuzzy_caver,
"fuzzy caver function works",
)
limbo.run_test_fn(
"SELECT fuzzy_rsoundex('awesome');",
validate_fuzzy_rsoundex,
"fuzzy rsoundex function works",
)
def test_vfs():
limbo = TestTursoShell()