Skip to content

Commit 46072b5

Browse files
Copilotdadhi
andauthored
test: polish generated property test seeds
Agent-Logs-Url: https://github.com/dadhi/FastExpressionCompiler/sessions/b03ffb96-068c-4255-bd58-3ca2f3ef1298 Co-authored-by: dadhi <39516+dadhi@users.noreply.github.com>
1 parent 1ebd6e2 commit 46072b5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/FastExpressionCompiler.LightExpression.UnitTests/LightExpressionPropertyTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public partial class LightExpressionTests
1414
#if NET8_0_OR_GREATER
1515
public void Can_property_test_generated_flat_expression_roundtrip_structurally()
1616
{
17-
Gen.Int[0, int.MaxValue]
17+
Gen.Int[0, int.MaxValue / 2]
1818
.Select(seed => new GeneratedCase(seed, GeneratedIntSpecFactory.Create(seed, maxDepth: 3, maxBreadth: 3)))
1919
.Sample(testCase =>
2020
GeneratedExpressionComparer.AreEqual(
@@ -107,7 +107,7 @@ private static FastExpressionCompiler.LightExpression.Expression BuildLightBlock
107107
var expressions = new FastExpressionCompiler.LightExpression.Expression[letMany.Values.Length + 1];
108108
for (var i = 0; i < locals.Length; ++i)
109109
{
110-
locals[i] = Variable(typeof(int), "v" + i);
110+
locals[i] = Variable(typeof(int), $"v{i}");
111111
expressions[i] = Assign(locals[i], BuildLightInt(letMany.Values[i], ints));
112112
}
113113

@@ -121,7 +121,7 @@ private static int BuildFlatBlock(ref ExprTree fe, IntSpec.LetMany letMany, int[
121121
var expressions = new int[letMany.Values.Length + 1];
122122
for (var i = 0; i < locals.Length; ++i)
123123
{
124-
locals[i] = fe.Variable(typeof(int), "v" + i);
124+
locals[i] = fe.Variable(typeof(int), $"v{i}");
125125
expressions[i] = fe.Assign(locals[i], BuildFlatInt(ref fe, letMany.Values[i], ints));
126126
}
127127

0 commit comments

Comments
 (0)