File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
java/toolgood.algorithm/src
main/java/toolgood/algorithm/internals
test/java/toolgood/algorithm/Tests Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1822,7 +1822,7 @@ public Operand visitEXACT_fun(final EXACT_funContext context) {
18221822 final List <Operand > args = new ArrayList <Operand >();
18231823 int index = 1 ;
18241824 for (final ExprContext item : context .expr ()) {
1825- final Operand aa = item .accept (this ).ToNumber ("Function EXACT parameter " + (index ++) + " is error!" );
1825+ final Operand aa = item .accept (this ).ToText ("Function EXACT parameter " + (index ++) + " is error!" );
18261826 if (aa .IsError ()) {
18271827 return aa ;
18281828 }
@@ -1832,7 +1832,7 @@ public Operand visitEXACT_fun(final EXACT_funContext context) {
18321832 final Operand firstValue = args .get (0 );
18331833 final Operand secondValue = args .get (1 );
18341834
1835- return Operand .Create (firstValue .TextValue () == secondValue .TextValue ());
1835+ return Operand .Create (firstValue .TextValue (). equals ( secondValue .TextValue () ));
18361836 }
18371837
18381838 public Operand visitFIND_fun (final FIND_funContext context ) {
Original file line number Diff line number Diff line change @@ -62,6 +62,10 @@ public void EXACT_test()
6262 assertEquals (t , false );
6363 t = engine .TryEvaluate ("EXACT('tt','tt')" , true );
6464 assertEquals (t , true );
65+ t = engine .TryEvaluate ("EXACT('tt','33')" , true );
66+ assertEquals (t , false );
67+ t = engine .TryEvaluate ("EXACT('tt','tt')" , false );
68+ assertEquals (t , true );
6569 }
6670 @ Test
6771 public void FIND_test ()
You can’t perform that action at this time.
0 commit comments