Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
andreakarasho committed Jun 1, 2024
1 parent 3c1ce1d commit f628972
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Query.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ internal Query(World world, ImmutableArray<QueryTerm> terms)
{
subQuery = World.GetQuery
(
Hashing.Calculate(or.Terms),
Hashing.Calculate(or.Terms.AsSpan()),
[.. or.Terms],
static (world, terms) => new Query(world, terms)
);
Expand Down
2 changes: 1 addition & 1 deletion src/Term.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public int CompareTo([NotNull] QueryTerm? other)

public class ContainerQueryTerm(QueryTerm[] terms, TermOp op) : QueryTerm(0, op)
{
public QueryTerm[] Terms { get; } = terms;
public ImmutableArray<QueryTerm> Terms { get; } = [.. terms];
}

public enum TermOp : byte
Expand Down
2 changes: 1 addition & 1 deletion tests/Query.cs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public void Query_Adjacent_Or()
Assert.Equal(ent2.ID, resEnt.ID);
}

[Fact]
[Fact]
public void Query_Nested_Or()
{
using var ctx = new Context();
Expand Down

0 comments on commit f628972

Please sign in to comment.