set precisemath default to false #8062
GitHub Actions / Lucee Test Results
failed
Dec 12, 2024 in 0s
2 fail, 193 skipped, 3 764 pass in 4m 15s
Annotations
Check warning on line 0 in test.functions.BitOr
github-actions / Lucee Test Results
should correctly perform bitwise OR between two large String values (test.functions.BitOr) failed
test/reports/junit-test-results-7.0.0.73-SNAPSHOT.xml [took 0s]
Raw output
Expected [18446744073709551615] but received [9223372036854778000]
[{Raw_Trace={system.assertion_cfc$cf$r.udfCall1(/testbox/system/Assertion.cfc:17)}, codePrintPlain={15: function fail( message = "", detail = "" ){
16: arguments.message = ( len( arguments.message ) ? arguments.message : "A test failure occurred" );
17: throw( type = "TestBox.AssertionFailed", message = arguments.message, detail = arguments.detail );
18: }
19:
}, column={0}, line={17}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/Assertion.cfc}, id={??}, type={cfml}, codePrintHTML={15: function fail( message = "", detail = "" ){<br>
16: arguments.message = ( len( arguments.message ) ? arguments.message : "A test failure occurred" );<br>
<b>17: throw( type = "TestBox.AssertionFailed", message = arguments.message, detail = arguments.detail );</b><br>
18: }<br>
19: <br>
}}, {Raw_Trace={system.assertion_cfc$cf$r.udfCall1(/testbox/system/Assertion.cfc:70)}, codePrintPlain={68: );
69: // if we reach here, nothing is equal man!
70: fail( arguments.message );
71: }
72:
}, column={0}, line={70}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/Assertion.cfc}, id={??}, type={cfml}, codePrintHTML={68: );<br>
69: // if we reach here, nothing is equal man!<br>
<b>70: fail( arguments.message );</b><br>
71: }<br>
72: <br>
}}, {Raw_Trace={system.expectation_cfc$cf$19z.udfCall1(/testbox/system/Expectation.cfc:164)}, codePrintPlain={162: variables.assert.isNotEqual( argumentCollection = arguments );
163: } else {
164: variables.assert.isEqual( argumentCollection = arguments );
165: }
166: return this;
}, column={0}, line={164}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/Expectation.cfc}, id={??}, type={cfml}, codePrintHTML={162: variables.assert.isNotEqual( argumentCollection = arguments );<br>
163: } else {<br>
<b>164: variables.assert.isEqual( argumentCollection = arguments );</b><br>
165: }<br>
166: return this;<br>
}}, {Raw_Trace={functions.bitor_cfc$cf$2p.udfCall2(/test/functions/BitOr.cfc:58)}, codePrintPlain={56: application action="update" preciseMath=true;
57: // systemOutput(getApplicationSettings().preciseMath, true);
58: expect( BitOr("9223372036854775808", "9223372036854775807") ).toBe("18446744073709551615");
59: application action="update" preciseMath=false;
60: // systemOutput(getApplicationSettings().preciseMath, true);
}, column={0}, line={58}, template={/home/runner/work/Lucee/Lucee/test/functions/BitOr.cfc}, id={??}, type={cfml}, codePrintHTML={56: application action="update" preciseMath=true;<br>
57: // systemOutput(getApplicationSettings().preciseMath, true);<br>
<b>58: expect( BitOr("9223372036854775808", "9223372036854775807") ).toBe("18446744073709551615");</b><br>
59: application action="update" preciseMath=false;<br>
60: // systemOutput(getApplicationSettings().preciseMath, true);<br>
}}, {Raw_Trace={system.basespec_cfc$cf$g.udfCall7(/testbox/system/BaseSpec.cfc:1438)}, codePrintPlain={1436: // Around Stub
1437: function aroundStub( spec ){
1438: spec.body( spec.data );
1439: }
1440:
}, column={0}, line={1438}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/BaseSpec.cfc}, id={??}, type={cfml}, codePrintHTML={1436: // Around Stub<br>
1437: function aroundStub( spec ){<br>
<b>1438: spec.body( spec.data );</b><br>
1439: }<br>
1440: <br>
}}, {Raw_Trace={system.basespec_cfc$cf$g.udfCall5(/testbox/system/BaseSpec.cfc:1090)}, codePrintPlain={1088: return function(){
1089: // Execute the body of the spec
1090: nextClosure.body( spec = thread.spec, suite = thread.suite, data = nextClosure.data );
1091: };
1092: }
}, column={0}, line={1090}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/BaseSpec.cfc}, id={??}, type={cfml}, codePrintHTML={1088: return function(){<br>
1089: // Execute the body of the spec<br>
<b>1090: nextClosure.body( spec = thread.spec, suite = thread.suite, data = nextClosure.data );</b><br>
1091: };<br>
1092: }<br>
}}, {Raw_Trace={system.basespec_cfc$cf$g.udfCall5(/testbox/system/BaseSpec.cfc:1061)}, codePrintPlain={1059: );
1060: // Run the specs
1061: specStack();
1062:
1063: return this;
}, column={0}, line={1061}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/BaseSpec.cfc}, id={??}, type={cfml}, codePrintHTML={1059: );<br>
1060: // Run the specs<br>
<b>1061: specStack();</b><br>
1062: <br>
1063: return this;<br>
}}, {Raw_Trace={system.basespec_cfc$cf$g.udfCall4(/testbox/system/BaseSpec.cfc:908)}, codePrintPlain={906:
907: try {
908: runAroundEachClosures( arguments.suite, arguments.spec );
909: } catch ( any e ) {
910: rethrow;
}, column={0}, line={908}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/BaseSpec.cfc}, id={??}, type={cfml}, codePrintHTML={906: <br>
907: try {<br>
<b>908: runAroundEachClosures( arguments.suite, arguments.spec );</b><br>
909: } catch ( any e ) {<br>
910: rethrow;<br>
}}, {Raw_Trace={system.runners.bddrunner_cfc$cf$19y.udfCall(/testbox/system/runners/BDDRunner.cfc:222)}, codePrintPlain={220: suiteStats=thread.suiteStats,
221: runner=this
222: );
223:
224: // verify call backs
}, column={0}, line={222}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/runners/BDDRunner.cfc}, id={??}, type={cfml}, codePrintHTML={220: suiteStats=thread.suiteStats,<br>
221: runner=this<br>
<b>222: );</b><br>
223: <br>
224: // verify call backs<br>
}}, {Raw_Trace={system.runners.bddrunner_cfc$cf$19y.udfCall(/testbox/system/runners/BDDRunner.cfc:84)}, codePrintPlain={82: testResults=arguments.testResults,
83: bundleStats=bundleStats,
84: callbacks=arguments.callbacks
85: );
86:
}, column={0}, line={84}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/runners/BDDRunner.cfc}, id={??}, type={cfml}, codePrintHTML={82: testResults=arguments.testResults,<br>
83: bundleStats=bundleStats,<br>
<b>84: callbacks=arguments.callbacks</b><br>
85: );<br>
86: <br>
}}, {Raw_Trace={system.testbox_cfc$cf$19p.udfCall2(/testbox/system/TestBox.cfc:474)}, codePrintPlain={472: // Run via BDD Style
473: new testbox.system.runners.BDDRunner( options=variables.options, testbox=this )
474: .run( target, arguments.testResults, arguments.callbacks );
475: }
476: else{
}, column={0}, line={474}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={472: // Run via BDD Style<br>
473: new testbox.system.runners.BDDRunner( options=variables.options, testbox=this )<br>
<b>474: .run( target, arguments.testResults, arguments.callbacks );</b><br>
475: }<br>
476: else{<br>
}}, {Raw_Trace={system.testbox_cfc$cf$19p.udfCall1(/testbox/system/TestBox.cfc:252)}, codePrintPlain={250: bundlePath = thisBundlePath,
251: testResults = results,
252: callbacks = arguments.callbacks
253: );
254:
}, column={0}, line={252}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={250: bundlePath = thisBundlePath,<br>
251: testResults = results,<br>
<b>252: callbacks = arguments.callbacks</b><br>
253: );<br>
254: <br>
}}, {Raw_Trace={system.testbox_cfc$cf$19p.udfCall1(/testbox/system/TestBox.cfc:161)}, codePrintPlain={159: if( !isNull( arguments.reporter ) ){ variables.reporter = arguments.reporter; }
160: // run it and get results
161: var results = runRaw( argumentCollection=arguments );
162: // store latest results
163: variables.result = results;
}, column={0}, line={161}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={159: if( !isNull( arguments.reporter ) ){ variables.reporter = arguments.reporter; }<br>
160: // run it and get results<br>
<b>161: var results = runRaw( argumentCollection=arguments );</b><br>
162: // store latest results<br>
163: variables.result = results;<br>
}}, {Raw_Trace={_testrunner_cfc$cf$4.udfCall(/test/_testRunner.cfc:294)}, codePrintPlain={292: ,onSpecEnd = function( bundle, testResults, suite, spec ){}*/
293: } // callbacks
294: ); // report = tb.run
295:
296: // get the result
}, column={0}, line={294}, template={/home/runner/work/Lucee/Lucee/test/_testRunner.cfc}, id={??}, type={cfml}, codePrintHTML={292: ,onSpecEnd = function( bundle, testResults, suite, spec ){}*/<br>
293: } // callbacks<br>
<b>294: ); // report = tb.run</b><br>
295: <br>
296: // get the result<br>
}}, {Raw_Trace={run_tests_cfm180$cf$1.call(/test/run-tests.cfm:348)}, codePrintPlain={346: systemOutput(NL & "-------------- Start Tests -----------", true);
347: silent {
348: testResults = new test._testRunner().runTests();
349: }
350:
}, column={0}, line={348}, template={/home/runner/work/Lucee/Lucee/test/run-tests.cfm}, id={??}, type={cfml}, codePrintHTML={346: systemOutput(NL & "-------------- Start Tests -----------", true);<br>
347: silent {<br>
<b>348: testResults = new test._testRunner().runTests();</b><br>
349: }<br>
350: <br>
}}]
Check warning on line 0 in test.functions.BitXor
github-actions / Lucee Test Results
Checking BitXOr() function with different large numbers (test.functions.BitXor) failed
test/reports/junit-test-results-7.0.0.73-SNAPSHOT.xml [took 0s]
Raw output
Expected [18446744073709551614] but received [18446744073709552001]
[{Raw_Trace={system.assertion_cfc$cf$r.udfCall1(/testbox/system/Assertion.cfc:17)}, codePrintPlain={15: function fail( message = "", detail = "" ){
16: arguments.message = ( len( arguments.message ) ? arguments.message : "A test failure occurred" );
17: throw( type = "TestBox.AssertionFailed", message = arguments.message, detail = arguments.detail );
18: }
19:
}, column={0}, line={17}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/Assertion.cfc}, id={??}, type={cfml}, codePrintHTML={15: function fail( message = "", detail = "" ){<br>
16: arguments.message = ( len( arguments.message ) ? arguments.message : "A test failure occurred" );<br>
<b>17: throw( type = "TestBox.AssertionFailed", message = arguments.message, detail = arguments.detail );</b><br>
18: }<br>
19: <br>
}}, {Raw_Trace={system.assertion_cfc$cf$r.udfCall1(/testbox/system/Assertion.cfc:70)}, codePrintPlain={68: );
69: // if we reach here, nothing is equal man!
70: fail( arguments.message );
71: }
72:
}, column={0}, line={70}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/Assertion.cfc}, id={??}, type={cfml}, codePrintHTML={68: );<br>
69: // if we reach here, nothing is equal man!<br>
<b>70: fail( arguments.message );</b><br>
71: }<br>
72: <br>
}}, {Raw_Trace={system.compat.framework.testcase_cfc$cf$d.udfCall2(/testbox/system/compat/framework/TestCase.cfc:186)}, codePrintPlain={184: */
185: function assertEquals( required any expected, required any actual, message="" ){
186: this.$assert.isEqual( arguments.expected, arguments.actual, arguments.message );
187: }
188:
}, column={0}, line={186}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/compat/framework/TestCase.cfc}, id={??}, type={cfml}, codePrintHTML={184: */<br>
185: function assertEquals( required any expected, required any actual, message="" ){<br>
<b>186: this.$assert.isEqual( arguments.expected, arguments.actual, arguments.message );</b><br>
187: }<br>
188: <br>
}}, {Raw_Trace={functions.bitxor_cfc$cf$2d.udfCall2(/test/functions/BitXor.cfc:50)}, codePrintPlain={48: it(title="Checking BitXOr() function with different large numbers", body = function(currentSpec) {
49: application action="update" preciseMath=true;
50: assertEquals("18446744073709551614", BitXOr("18446744073709551615", "1")); // 111...11111111 XOR 000...00000001 = 111...11111110
51:
52: application action="update" preciseMath=false;
}, column={0}, line={50}, template={/home/runner/work/Lucee/Lucee/test/functions/BitXor.cfc}, id={??}, type={cfml}, codePrintHTML={48: it(title="Checking BitXOr() function with different large numbers", body = function(currentSpec) {<br>
49: application action="update" preciseMath=true;<br>
<b>50: assertEquals("18446744073709551614", BitXOr("18446744073709551615", "1")); // 111...11111111 XOR 000...00000001 = 111...11111110</b><br>
51: <br>
52: application action="update" preciseMath=false;<br>
}}, {Raw_Trace={system.basespec_cfc$cf$g.udfCall7(/testbox/system/BaseSpec.cfc:1438)}, codePrintPlain={1436: // Around Stub
1437: function aroundStub( spec ){
1438: spec.body( spec.data );
1439: }
1440:
}, column={0}, line={1438}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/BaseSpec.cfc}, id={??}, type={cfml}, codePrintHTML={1436: // Around Stub<br>
1437: function aroundStub( spec ){<br>
<b>1438: spec.body( spec.data );</b><br>
1439: }<br>
1440: <br>
}}, {Raw_Trace={system.basespec_cfc$cf$g.udfCall5(/testbox/system/BaseSpec.cfc:1090)}, codePrintPlain={1088: return function(){
1089: // Execute the body of the spec
1090: nextClosure.body( spec = thread.spec, suite = thread.suite, data = nextClosure.data );
1091: };
1092: }
}, column={0}, line={1090}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/BaseSpec.cfc}, id={??}, type={cfml}, codePrintHTML={1088: return function(){<br>
1089: // Execute the body of the spec<br>
<b>1090: nextClosure.body( spec = thread.spec, suite = thread.suite, data = nextClosure.data );</b><br>
1091: };<br>
1092: }<br>
}}, {Raw_Trace={system.basespec_cfc$cf$g.udfCall5(/testbox/system/BaseSpec.cfc:1061)}, codePrintPlain={1059: );
1060: // Run the specs
1061: specStack();
1062:
1063: return this;
}, column={0}, line={1061}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/BaseSpec.cfc}, id={??}, type={cfml}, codePrintHTML={1059: );<br>
1060: // Run the specs<br>
<b>1061: specStack();</b><br>
1062: <br>
1063: return this;<br>
}}, {Raw_Trace={system.basespec_cfc$cf$g.udfCall4(/testbox/system/BaseSpec.cfc:908)}, codePrintPlain={906:
907: try {
908: runAroundEachClosures( arguments.suite, arguments.spec );
909: } catch ( any e ) {
910: rethrow;
}, column={0}, line={908}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/BaseSpec.cfc}, id={??}, type={cfml}, codePrintHTML={906: <br>
907: try {<br>
<b>908: runAroundEachClosures( arguments.suite, arguments.spec );</b><br>
909: } catch ( any e ) {<br>
910: rethrow;<br>
}}, {Raw_Trace={system.runners.bddrunner_cfc$cf$19y.udfCall(/testbox/system/runners/BDDRunner.cfc:222)}, codePrintPlain={220: suiteStats=thread.suiteStats,
221: runner=this
222: );
223:
224: // verify call backs
}, column={0}, line={222}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/runners/BDDRunner.cfc}, id={??}, type={cfml}, codePrintHTML={220: suiteStats=thread.suiteStats,<br>
221: runner=this<br>
<b>222: );</b><br>
223: <br>
224: // verify call backs<br>
}}, {Raw_Trace={system.runners.bddrunner_cfc$cf$19y.udfCall(/testbox/system/runners/BDDRunner.cfc:84)}, codePrintPlain={82: testResults=arguments.testResults,
83: bundleStats=bundleStats,
84: callbacks=arguments.callbacks
85: );
86:
}, column={0}, line={84}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/runners/BDDRunner.cfc}, id={??}, type={cfml}, codePrintHTML={82: testResults=arguments.testResults,<br>
83: bundleStats=bundleStats,<br>
<b>84: callbacks=arguments.callbacks</b><br>
85: );<br>
86: <br>
}}, {Raw_Trace={system.testbox_cfc$cf$19p.udfCall2(/testbox/system/TestBox.cfc:474)}, codePrintPlain={472: // Run via BDD Style
473: new testbox.system.runners.BDDRunner( options=variables.options, testbox=this )
474: .run( target, arguments.testResults, arguments.callbacks );
475: }
476: else{
}, column={0}, line={474}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={472: // Run via BDD Style<br>
473: new testbox.system.runners.BDDRunner( options=variables.options, testbox=this )<br>
<b>474: .run( target, arguments.testResults, arguments.callbacks );</b><br>
475: }<br>
476: else{<br>
}}, {Raw_Trace={system.testbox_cfc$cf$19p.udfCall1(/testbox/system/TestBox.cfc:252)}, codePrintPlain={250: bundlePath = thisBundlePath,
251: testResults = results,
252: callbacks = arguments.callbacks
253: );
254:
}, column={0}, line={252}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={250: bundlePath = thisBundlePath,<br>
251: testResults = results,<br>
<b>252: callbacks = arguments.callbacks</b><br>
253: );<br>
254: <br>
}}, {Raw_Trace={system.testbox_cfc$cf$19p.udfCall1(/testbox/system/TestBox.cfc:161)}, codePrintPlain={159: if( !isNull( arguments.reporter ) ){ variables.reporter = arguments.reporter; }
160: // run it and get results
161: var results = runRaw( argumentCollection=arguments );
162: // store latest results
163: variables.result = results;
}, column={0}, line={161}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={159: if( !isNull( arguments.reporter ) ){ variables.reporter = arguments.reporter; }<br>
160: // run it and get results<br>
<b>161: var results = runRaw( argumentCollection=arguments );</b><br>
162: // store latest results<br>
163: variables.result = results;<br>
}}, {Raw_Trace={_testrunner_cfc$cf$4.udfCall(/test/_testRunner.cfc:294)}, codePrintPlain={292: ,onSpecEnd = function( bundle, testResults, suite, spec ){}*/
293: } // callbacks
294: ); // report = tb.run
295:
296: // get the result
}, column={0}, line={294}, template={/home/runner/work/Lucee/Lucee/test/_testRunner.cfc}, id={??}, type={cfml}, codePrintHTML={292: ,onSpecEnd = function( bundle, testResults, suite, spec ){}*/<br>
293: } // callbacks<br>
<b>294: ); // report = tb.run</b><br>
295: <br>
296: // get the result<br>
}}, {Raw_Trace={run_tests_cfm180$cf$1.call(/test/run-tests.cfm:348)}, codePrintPlain={346: systemOutput(NL & "-------------- Start Tests -----------", true);
347: silent {
348: testResults = new test._testRunner().runTests();
349: }
350:
}, column={0}, line={348}, template={/home/runner/work/Lucee/Lucee/test/run-tests.cfm}, id={??}, type={cfml}, codePrintHTML={346: systemOutput(NL & "-------------- Start Tests -----------", true);<br>
347: silent {<br>
<b>348: testResults = new test._testRunner().runTests();</b><br>
349: }<br>
350: <br>
}}]
Loading