@@ -124,7 +124,7 @@ public class ParserTests
124124 [ TestCase ( "NOT(a) AND NOT(b)" , 1 , 0 , ExpectedResult = 0 ) ]
125125 public float Parse_Variable ( string input , float a , float b )
126126 {
127- var context = new ExpresionContext < float > ( ) ;
127+ var context = new ExpressionContext < float > ( ) ;
128128 context . RegisterVariable ( "a" , ( ) => a ) ;
129129 context . RegisterVariable ( "b" , ( ) => b ) ;
130130 return Execute ( input , context ) ;
@@ -133,15 +133,15 @@ public float Parse_Variable(string input, float a, float b)
133133 [ Test ]
134134 public void ComplexVariableName ( )
135135 {
136- var context = new ExpresionContext < float > ( ) ;
136+ var context = new ExpressionContext < float > ( ) ;
137137 context . RegisterVariable ( "Some_Variable" , ( ) => 1 ) ;
138138 Assert . AreEqual ( 1 , Execute ( "Some_Variable" , context ) ) ;
139139 }
140140
141141 [ Test ]
142142 public void ReadmeSample ( )
143143 {
144- var context = new ExpresionContext < float > ( ) ;
144+ var context = new ExpressionContext < float > ( ) ;
145145
146146 context . RegisterVariable ( "a" , ( ) => 1 ) ;
147147 context . RegisterVariable ( "b" , ( ) => 2 ) ;
@@ -157,7 +157,7 @@ public void ReadmeSample()
157157 [ Test ]
158158 public void Parse_Variable_Names ( )
159159 {
160- var context = new ExpresionContext < float > ( ) ;
160+ var context = new ExpressionContext < float > ( ) ;
161161 context . RegisterVariable ( "o" , ( ) => 1 ) ;
162162 context . RegisterVariable ( "one" , ( ) => 1 ) ;
163163 context . RegisterVariable ( "one123" , ( ) => 1 ) ;
@@ -192,7 +192,7 @@ public void Parse_MinMax_Invalid()
192192 [ Test ]
193193 public void Parse_If ( )
194194 {
195- var context = new ExpresionContext < float > ( ) ;
195+ var context = new ExpressionContext < float > ( ) ;
196196
197197 var n = 0 ;
198198 context . RegisterVariable ( "n" , ( ) => n ) ;
@@ -218,8 +218,8 @@ public void Parse_If()
218218 [ Test ]
219219 public void ContextTree ( )
220220 {
221- var rootContext = new ExpresionContext < float > ( ) ;
222- var subContext = new ExpresionContext < float > ( rootContext ) ;
221+ var rootContext = new ExpressionContext < float > ( ) ;
222+ var subContext = new ExpressionContext < float > ( rootContext ) ;
223223
224224 var rootA = 1 ;
225225 var rootB = 2 ;
@@ -252,12 +252,12 @@ public bool Parse_Predicate(string input)
252252 return FloatExpressionParser . Instance . CompilePredicate ( input , null , false ) . Invoke ( ) ;
253253 }
254254
255- private static float Execute ( string input , ExpresionContext < float > context )
255+ private static float Execute ( string input , ExpressionContext < float > context )
256256 {
257257 return Compile ( input , context ) . Invoke ( ) ;
258258 }
259259
260- private static Expression < float > Compile ( string input , ExpresionContext < float > context )
260+ private static Expression < float > Compile ( string input , ExpressionContext < float > context )
261261 {
262262 return FloatExpressionParser . Instance . Compile ( input , context , false ) ;
263263 }
0 commit comments