File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed
FastExpressionCompiler.IssueTests
FastExpressionCompiler.TestsRunner Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ public struct Issue461_InvalidProgramException_when_null_checking_type_by_ref :
14
14
{
15
15
public int Run ( )
16
16
{
17
+ Case_equal_nullable_and_object_null ( ) ;
18
+ Case_equal_nullable_and_nullable_null_on_the_left ( ) ;
17
19
Case_not_equal_nullable_decimal ( ) ;
18
- // Case_equal_nullable_and_object_null();
19
- // Case_equal_nullable_and_nullable_null_on_the_left();
20
20
Original_case ( ) ;
21
21
Original_case_null_on_the_right ( ) ;
22
22
return 5 ;
@@ -89,7 +89,10 @@ public void Original_case_null_on_the_right()
89
89
) ;
90
90
}
91
91
92
- public struct XX { }
92
+ public struct XX
93
+ {
94
+ public Decimal D ;
95
+ }
93
96
94
97
public void Case_equal_nullable_and_object_null ( )
95
98
{
@@ -165,12 +168,12 @@ public void Case_not_equal_nullable_decimal()
165
168
ff . PrintIL ( ) ;
166
169
Asserts . IsTrue ( ff ( 1.142m ) ) ;
167
170
168
- // ff.AssertOpCodes(
169
- // OpCodes.Ldarg_1,
170
- // OpCodes.Call, // .get_HasValue()
171
- // OpCodes.Ldc_I4_0 ,
172
- // OpCodes.Ceq,
173
- // OpCodes.Ret
174
- // );
171
+ ff . AssertOpCodes (
172
+ OpCodes . Ldarg_1 ,
173
+ OpCodes . Stloc_0 ,
174
+ OpCodes . Ldloca_S ,
175
+ OpCodes . Call , // .get_HasValue()
176
+ OpCodes . Ret
177
+ ) ;
175
178
}
176
179
}
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ public class Program
10
10
public static void Main ( )
11
11
{
12
12
new LightExpression . IssueTests . Issue461_InvalidProgramException_when_null_checking_type_by_ref ( ) . Run ( ) ;
13
- new Issue341_Equality_comparison_between_nullable_and_null_inside_Any_produces_incorrect_compiled_expression ( ) . Run ( ) ;
14
13
14
+ // new Issue341_Equality_comparison_between_nullable_and_null_inside_Any_produces_incorrect_compiled_expression().Run();
15
15
// new LightExpression.IssueTests.Issue460_ArgumentException_when_converting_from_object_to_type_with_explicit_operator().Run();
16
16
17
17
// todo: @wip add to FEC, check the possibility of the increment compilation and the artifacts reusability
You can’t perform that action at this time.
0 commit comments