Skip to content

Commit 82727c4

Browse files
committed
Removed collection expressions from test
1 parent 2eb52b1 commit 82727c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

LLama.Unittest/LLamaContextTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ public void Tokenize()
3838
{
3939
var tokens = _context.Tokenize("The quick brown fox", true);
4040

41-
Assert.Equal([ 1, 450, 4996, 17354, 1701, 29916 ], tokens);
41+
Assert.Equal(new LLamaToken[] { 1, 450, 4996, 17354, 1701, 29916 }, tokens);
4242
}
4343

4444
[Fact]
4545
public void TokenizeWithoutBOS()
4646
{
4747
var tokens = _context.Tokenize("The quick brown fox", false);
4848

49-
Assert.Equal([450, 4996, 17354, 1701, 29916], tokens);
49+
Assert.Equal(new LLamaToken[] { 450, 4996, 17354, 1701, 29916 }, tokens);
5050
}
5151

5252
[Fact]

LLama/Native/LLamaToken.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ private LLamaToken(int value)
3434
/// </summary>
3535
/// <param name="value"></param>
3636
/// <returns></returns>
37-
public static explicit operator LLamaToken(int value) => new(value);
37+
public static implicit operator LLamaToken(int value) => new(value);
3838
}

0 commit comments

Comments
 (0)