Skip to content

Commit a1ff208

Browse files
committed
test(decimal): expand AdoLikeCases and OverflowCases with more scenarios
1 parent f02d583 commit a1ff208

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/EFCore.Ydb/test/EntityFrameworkCore.Ydb.FunctionalTests/Query/DecimalParameterizedYdbTheoryTest.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,25 @@ private DbContextOptions<ParametricDecimalContext> BuildOptions()
2323
[
2424
[22, 9, 1.23456789m],
2525
[30, 10, 123.4567890123m],
26-
[18, 2, 1.239m]
26+
[18, 2, 1.239m],
27+
[18, 2, 12345678.91m],
28+
[10, 0, 9999999999m],
29+
[22, 9, -0.123456789m],
30+
[5, 2, 12.34m],
31+
[30, 10, 0.0000000001m]
2732
];
2833

2934
public static IEnumerable<object[]> OverflowCases =>
3035
[
3136
[15, 2, 123456789012345.67m],
3237
[10, 0, 12345678901m],
33-
[22, 9, 1.0000000001m]
38+
[22, 9, 1.0000000001m],
39+
[18, 2, 100000000000000000m],
40+
[22, 9, 12345678901234567890.123456789m],
41+
[22, 9, -12345678901234567890.123456789m],
42+
[4, 2, 123.456m],
43+
[1, 0, 10m],
44+
[5, 0, 100000m]
3445
];
3546

3647
private ParametricDecimalContext NewCtx(int p, int s)

0 commit comments

Comments
 (0)