Skip to content

Commit

Permalink
Merge pull request #7 from vforteli/feature/streaming
Browse files Browse the repository at this point in the history
Feature/streaming
  • Loading branch information
vforteli authored Aug 30, 2022
2 parents 29e1356 + 9236290 commit e20c5f6
Show file tree
Hide file tree
Showing 14 changed files with 965 additions and 391 deletions.
1 change: 1 addition & 0 deletions FuzzySearchNet.Tests/FuzzySearchNet.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="NUnit.Analyzers" Version="3.3.0" />
<PackageReference Include="coverlet.collector" Version="3.1.2" />
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public async Task TestZeroMaxDistanceMultiple()
var word = "foo";
var text = new MemoryStream(Encoding.UTF8.GetBytes("foo-----fo--foo-f--fooo--"));

var results = (await FuzzySearch.FindExactAsync(word, text)).ToList();
var results = await FuzzySearch.FindExactAsync(word, text).ToListAsync();

Assert.Multiple(() =>
{
Expand Down Expand Up @@ -36,7 +36,7 @@ public async Task TestZeroMaxDistanceMultiple()
public async Task TestZeroMaxDistanceBufferBoundary(string term, string text, int expectedStartIndex)
{
var stream = new MemoryStream(Encoding.UTF8.GetBytes(text));
var results = (await FuzzySearch.FindExactAsync(term, stream, 8)).ToList();
var results = await FuzzySearch.FindExactAsync(term, stream, 8).ToListAsync();

Assert.Multiple(() =>
{
Expand Down
Loading

0 comments on commit e20c5f6

Please sign in to comment.