Fixed naming in tests

This commit is contained in:
Martin Evans 2023-09-06 20:09:41 +01:00
parent 614ba40948
commit 3f082c6f2c
1 changed files with 8 additions and 8 deletions

View File

@ -29,13 +29,13 @@ public class TokenTests
{ {
var tokens = _model.NativeHandle.Tokenize("The cat sat on the edge of the mat", false, Encoding.UTF8); var tokens = _model.NativeHandle.Tokenize("The cat sat on the edge of the mat", false, Encoding.UTF8);
var resultTrue = tokens.TokensEndsWithAnyString(new[] var result = tokens.TokensEndsWithAnyString(new[]
{ {
"a fish", "a fish",
"the mat", "the mat",
"this is an improbably long query to be using for this method" "this is an improbably long query to be using for this method"
}, _model.NativeHandle, Encoding.UTF8); }, _model.NativeHandle, Encoding.UTF8);
Assert.True(resultTrue); Assert.True(result);
} }
[Fact] [Fact]
@ -43,11 +43,11 @@ public class TokenTests
{ {
var tokens = _model.NativeHandle.Tokenize("The cat sat on the edge of the mat", false, Encoding.UTF8); var tokens = _model.NativeHandle.Tokenize("The cat sat on the edge of the mat", false, Encoding.UTF8);
var resultTrue = tokens.TokensEndsWithAnyString(new[] var result = tokens.TokensEndsWithAnyString(new[]
{ {
"at", "at",
}, _model.NativeHandle, Encoding.UTF8); }, _model.NativeHandle, Encoding.UTF8);
Assert.True(resultTrue); Assert.True(result);
} }
[Fact] [Fact]
@ -55,13 +55,13 @@ public class TokenTests
{ {
var tokens = _model.NativeHandle.Tokenize("The cat sat on the edge of the mat", false, Encoding.UTF8); var tokens = _model.NativeHandle.Tokenize("The cat sat on the edge of the mat", false, Encoding.UTF8);
var resultTrue = tokens.TokensEndsWithAnyString(new[] var result = tokens.TokensEndsWithAnyString(new[]
{ {
"a fish", "a fish",
"The cat sat on the edge of the ma", "The cat sat on the edge of the ma",
"this is an improbably long query to be using for this method" "this is an improbably long query to be using for this method"
}, _model.NativeHandle, Encoding.UTF8); }, _model.NativeHandle, Encoding.UTF8);
Assert.False(resultTrue); Assert.False(result);
} }
[Fact] [Fact]
@ -69,7 +69,7 @@ public class TokenTests
{ {
var tokens = _model.NativeHandle.Tokenize("The cat sat on the edge of the mat", false, Encoding.UTF8); var tokens = _model.NativeHandle.Tokenize("The cat sat on the edge of the mat", false, Encoding.UTF8);
var resultTrue = tokens.TokensEndsWithAnyString(Array.Empty<string>(), _model.NativeHandle, Encoding.UTF8); var result = tokens.TokensEndsWithAnyString(Array.Empty<string>(), _model.NativeHandle, Encoding.UTF8);
Assert.False(resultTrue); Assert.False(result);
} }
} }