Skip to content

Commit 402cec4

Browse files
committed
Check jaro_distance values in CI
1 parent a47fce0 commit 402cec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/absinthe/utils/suggestion.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ defmodule Absinthe.Utils.Suggestion do
99
def sort_list(suggestions, target, threshold \\ @jaro_threshold)
1010

1111
def sort_list(suggestions, target, threshold) do
12-
Enum.map(suggestions, fn s -> {s, String.jaro_distance(s, target)} end)
12+
Enum.map(suggestions, fn s -> IO.inspect({s, String.jaro_distance(s, target)}) end)
1313
|> Enum.filter(fn {_, x} -> x >= threshold end)
1414
|> Enum.sort_by(fn {_, x} -> x end)
1515
|> Enum.map(fn {s, _} -> s end)

0 commit comments

Comments
 (0)