@@ -34,7 +34,7 @@ func test(t *testing.T, entries []entry, cases []testcase) *Tree {
3434
3535 fail := false
3636 for _ , c := range cases {
37- value , err := tree .Find (c .key )
37+ value , err := tree .FindValue (c .key )
3838 if c .err != nil {
3939 if err != c .err {
4040 fail = true
@@ -352,7 +352,7 @@ func TestDictionary(t *testing.T) {
352352 "diametrically" ,
353353 }
354354 for i , key := range keys {
355- _ , err := tree .Find (key )
355+ _ , err := tree .FindValue (key )
356356 if err != nil {
357357 t .Errorf ("Case %d: Find(\" %s\" ) encountered error: %v\n " , i , key , err )
358358 }
@@ -366,7 +366,7 @@ func TestDictionary(t *testing.T) {
366366 "dea" ,
367367 }
368368 for i , key := range keys {
369- _ , err := tree .Find (key )
369+ _ , err := tree .FindValue (key )
370370 if err != ErrPrefixAmbiguous {
371371 t .Errorf ("Case %d: Find(\" %s\" ) should have been ambiguous\n " , i , key )
372372 }
@@ -410,7 +410,7 @@ func BenchmarkDictionary(b *testing.B) {
410410 "ruddy" ,
411411 }
412412 for _ , key := range keys {
413- _ , err := tree .Find (key )
413+ _ , err := tree .FindValue (key )
414414 if err != nil {
415415 b .Errorf ("Find(\" %s\" ) encountered error: %v\n " , key , err )
416416 }
0 commit comments