Added a testcase to check decimalFormat() for LDEV-4776 #1645
GitHub Actions / Lucee Test Results
failed
Dec 29, 2023 in 0s
2 fail, 189 skipped, 3 452 pass in 2m 54s
1 files 1 398 suites 2m 54s ⏱️
3 643 tests 3 452 ✅ 189 💤 2 ❌
3 758 runs 3 548 ✅ 208 💤 2 ❌
Results for commit 5957d14.
Annotations
Check warning on line 0 in test.tickets.LDEV3777
github-actions / Lucee Test Results
cfsavecontent with simple Whitespace management (test.tickets.LDEV3777) failed
test/reports/junit-test-results-6.0.1.52-SNAPSHOT.xml [took 0s]
Raw output
Expected [0] but received [20]
[{Raw_Trace={system.assertion_cfc$cf.udfCall1(/testbox/system/Assertion.cfc:16)}, codePrintPlain={14: function fail( message="" ){
15: arguments.message = ( len( arguments.message ) ? arguments.message : "A test failure occurred" );
16: throw(type="TestBox.AssertionFailed", message=arguments.message);
17: }
18:
}, column={0}, line={16}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/Assertion.cfc}, id={??}, type={cfml}, codePrintHTML={14: function fail( message="" ){<br>
15: arguments.message = ( len( arguments.message ) ? arguments.message : "A test failure occurred" );<br>
<b>16: throw(type="TestBox.AssertionFailed", message=arguments.message);</b><br>
17: }<br>
18: <br>
}}, {Raw_Trace={system.assertion_cfc$cf.udfCall1(/testbox/system/Assertion.cfc:67)}, codePrintPlain={65: "Expected [#getStringName( arguments.expected )#] but received [#getStringName( arguments.actual )#]" );
66: // if we reach here, nothing is equal man!
67: fail( arguments.message );
68: }
69:
}, column={0}, line={67}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/Assertion.cfc}, id={??}, type={cfml}, codePrintHTML={65: "Expected [#getStringName( arguments.expected )#] but received [#getStringName( arguments.actual )#]" );<br>
66: // if we reach here, nothing is equal man!<br>
<b>67: fail( arguments.message );</b><br>
68: }<br>
69: <br>
}}, {Raw_Trace={system.expectation_cfc$cf.udfCall1(/testbox/system/Expectation.cfc:150)}, codePrintPlain={148: variables.assert.isNotEqual( argumentCollection=arguments );
149: } else {
150: variables.assert.isEqual( argumentCollection=arguments );
151: }
152: return this;
}, column={0}, line={150}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/Expectation.cfc}, id={??}, type={cfml}, codePrintHTML={148: variables.assert.isNotEqual( argumentCollection=arguments );<br>
149: } else {<br>
<b>150: variables.assert.isEqual( argumentCollection=arguments );</b><br>
151: }<br>
152: return this;<br>
}}, {Raw_Trace={tickets.ldev3777_cfc$cf.udfCall(/test/tickets/LDEV3777.cfc:24)}, codePrintPlain={22: forms: {scene = 2}
23: );
24: expect(trim(result.filecontent)).toBe("0");
25: });
26: it(title="cfsavecontent with smart Whitespace management", body=function( currentSpec ) {
}, column={0}, line={24}, template={/home/runner/work/Lucee/Lucee/test/tickets/LDEV3777.cfc}, id={??}, type={cfml}, codePrintHTML={22: forms: {scene = 2}<br>
23: );<br>
<b>24: expect(trim(result.filecontent)).toBe("0");</b><br>
25: });<br>
26: it(title="cfsavecontent with smart Whitespace management", body=function( currentSpec ) {<br>
}}, {Raw_Trace={system.basespec_cfc$cf.udfCall3(/testbox/system/BaseSpec.cfc:567)}, codePrintPlain={565: } else {
566: // Execute the Spec body
567: arguments.spec.body( data=arguments.spec.data );
568: }
569: } catch( any e ){
}, column={0}, line={567}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/BaseSpec.cfc}, id={??}, type={cfml}, codePrintHTML={565: } else {<br>
566: // Execute the Spec body<br>
<b>567: arguments.spec.body( data=arguments.spec.data );</b><br>
568: }<br>
569: } catch( any e ){<br>
}}, {Raw_Trace={system.runners.bddrunner_cfc$cf.udfCall(/testbox/system/runners/BDDRunner.cfc:204)}, codePrintPlain={202: suiteStats=thread.suiteStats,
203: runner=this
204: );
205:
206: // verify call backs
}, column={0}, line={204}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/runners/BDDRunner.cfc}, id={??}, type={cfml}, codePrintHTML={202: suiteStats=thread.suiteStats,<br>
203: runner=this <br>
<b>204: );</b><br>
205: <br>
206: // verify call backs<br>
}}, {Raw_Trace={system.runners.bddrunner_cfc$cf.udfCall(/testbox/system/runners/BDDRunner.cfc:75)}, codePrintPlain={73: testResults=arguments.testResults,
74: bundleStats=bundleStats,
75: callbacks=arguments.callbacks
76: );
77:
}, column={0}, line={75}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/runners/BDDRunner.cfc}, id={??}, type={cfml}, codePrintHTML={73: testResults=arguments.testResults,<br>
74: bundleStats=bundleStats,<br>
<b>75: callbacks=arguments.callbacks</b><br>
76: );<br>
77: <br>
}}, {Raw_Trace={system.testbox_cfc$cf.udfCall1(/testbox/system/TestBox.cfc:364)}, codePrintPlain={362: // Run via BDD Style
363: new testbox.system.runners.BDDRunner( options=variables.options, testbox=this )
364: .run( target, arguments.testResults, arguments.callbacks );
365: }
366: else{
}, column={0}, line={364}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={362: // Run via BDD Style<br>
363: new testbox.system.runners.BDDRunner( options=variables.options, testbox=this )<br>
<b>364: .run( target, arguments.testResults, arguments.callbacks );</b><br>
365: }<br>
366: else{<br>
}}, {Raw_Trace={system.testbox_cfc$cf.udfCall1(/testbox/system/TestBox.cfc:170)}, codePrintPlain={168: for( var thisBundlePath in variables.bundles ){
169: // Execute Bundle
170: testBundle( bundlePath=thisBundlePath, testResults=results, callbacks=arguments.callbacks );
171: }
172:
}, column={0}, line={170}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={168: for( var thisBundlePath in variables.bundles ){<br>
169: // Execute Bundle<br>
<b>170: testBundle( bundlePath=thisBundlePath, testResults=results, callbacks=arguments.callbacks );</b><br>
171: }<br>
172: <br>
}}, {Raw_Trace={system.testbox_cfc$cf.udfCall1(/testbox/system/TestBox.cfc:98)}, codePrintPlain={96: if( !isNull( arguments.reporter ) ){ variables.reporter = arguments.reporter; }
97: // run it and get results
98: var results = runRaw( argumentCollection=arguments );
99: // store latest results
100: variables.result = results;
}, column={0}, line={98}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={96: if( !isNull( arguments.reporter ) ){ variables.reporter = arguments.reporter; }<br>
97: // run it and get results<br>
<b>98: var results = runRaw( argumentCollection=arguments );</b><br>
99: // store latest results<br>
100: variables.result = results;<br>
}}, {Raw_Trace={_testrunner_cfc$cf.udfCall(/test/_testRunner.cfc:281)}, codePrintPlain={279: ,onSpecEnd = function( bundle, testResults, suite, spec ){}*/
280: } // callbacks
281: ); // report = tb.run
282:
283: // get the result
}, column={0}, line={281}, template={/home/runner/work/Lucee/Lucee/test/_testRunner.cfc}, id={??}, type={cfml}, codePrintHTML={279: ,onSpecEnd = function( bundle, testResults, suite, spec ){}*/<br>
280: } // callbacks<br>
<b>281: ); // report = tb.run</b><br>
282: <br>
283: // get the result<br>
}}, {Raw_Trace={run_tests_cfm180$cf.call(/test/run-tests.cfm:260)}, codePrintPlain={258: systemOutput(NL & "-------------- Start Tests -----------", true);
259: silent {
260: testResults = new test._testRunner().runTests();
261: }
262:
}, column={0}, line={260}, template={/home/runner/work/Lucee/Lucee/test/run-tests.cfm}, id={??}, type={cfml}, codePrintHTML={258: systemOutput(NL & "-------------- Start Tests -----------", true);<br>
259: silent {<br>
<b>260: testResults = new test._testRunner().runTests();</b><br>
261: }<br>
262: <br>
}}]
Check warning on line 0 in test.tickets.LDEV4776
github-actions / Lucee Test Results
Checking decimalFormat() (test.tickets.LDEV4776) failed
test/reports/junit-test-results-6.0.1.52-SNAPSHOT.xml [took 0s]
Raw output
Expected [512.93] but received [512.92]
[{Raw_Trace={system.assertion_cfc$cf.udfCall1(/testbox/system/Assertion.cfc:16)}, codePrintPlain={14: function fail( message="" ){
15: arguments.message = ( len( arguments.message ) ? arguments.message : "A test failure occurred" );
16: throw(type="TestBox.AssertionFailed", message=arguments.message);
17: }
18:
}, column={0}, line={16}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/Assertion.cfc}, id={??}, type={cfml}, codePrintHTML={14: function fail( message="" ){<br>
15: arguments.message = ( len( arguments.message ) ? arguments.message : "A test failure occurred" );<br>
<b>16: throw(type="TestBox.AssertionFailed", message=arguments.message);</b><br>
17: }<br>
18: <br>
}}, {Raw_Trace={system.assertion_cfc$cf.udfCall1(/testbox/system/Assertion.cfc:67)}, codePrintPlain={65: "Expected [#getStringName( arguments.expected )#] but received [#getStringName( arguments.actual )#]" );
66: // if we reach here, nothing is equal man!
67: fail( arguments.message );
68: }
69:
}, column={0}, line={67}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/Assertion.cfc}, id={??}, type={cfml}, codePrintHTML={65: "Expected [#getStringName( arguments.expected )#] but received [#getStringName( arguments.actual )#]" );<br>
66: // if we reach here, nothing is equal man!<br>
<b>67: fail( arguments.message );</b><br>
68: }<br>
69: <br>
}}, {Raw_Trace={system.expectation_cfc$cf.udfCall1(/testbox/system/Expectation.cfc:150)}, codePrintPlain={148: variables.assert.isNotEqual( argumentCollection=arguments );
149: } else {
150: variables.assert.isEqual( argumentCollection=arguments );
151: }
152: return this;
}, column={0}, line={150}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/Expectation.cfc}, id={??}, type={cfml}, codePrintHTML={148: variables.assert.isNotEqual( argumentCollection=arguments );<br>
149: } else {<br>
<b>150: variables.assert.isEqual( argumentCollection=arguments );</b><br>
151: }<br>
152: return this;<br>
}}, {Raw_Trace={tickets.ldev4776_cfc$cf.udfCall(/test/tickets/LDEV4776.cfc:7)}, codePrintPlain={5:
6: expect( decimalFormat(511.925) ).toBe( 511.93 );
7: expect( decimalFormat(512.925) ).toBe( 512.93 );
8: expect( decimalFormat(654.925) ).toBe( 654.93 );
9: expect( decimalFormat(655.925) ).toBe( 655.93 );
}, column={0}, line={7}, template={/home/runner/work/Lucee/Lucee/test/tickets/LDEV4776.cfc}, id={??}, type={cfml}, codePrintHTML={5: <br>
6: expect( decimalFormat(511.925) ).toBe( 511.93 );<br>
<b>7: expect( decimalFormat(512.925) ).toBe( 512.93 );</b><br>
8: expect( decimalFormat(654.925) ).toBe( 654.93 );<br>
9: expect( decimalFormat(655.925) ).toBe( 655.93 );<br>
}}, {Raw_Trace={system.basespec_cfc$cf.udfCall3(/testbox/system/BaseSpec.cfc:567)}, codePrintPlain={565: } else {
566: // Execute the Spec body
567: arguments.spec.body( data=arguments.spec.data );
568: }
569: } catch( any e ){
}, column={0}, line={567}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/BaseSpec.cfc}, id={??}, type={cfml}, codePrintHTML={565: } else {<br>
566: // Execute the Spec body<br>
<b>567: arguments.spec.body( data=arguments.spec.data );</b><br>
568: }<br>
569: } catch( any e ){<br>
}}, {Raw_Trace={system.runners.bddrunner_cfc$cf.udfCall(/testbox/system/runners/BDDRunner.cfc:204)}, codePrintPlain={202: suiteStats=thread.suiteStats,
203: runner=this
204: );
205:
206: // verify call backs
}, column={0}, line={204}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/runners/BDDRunner.cfc}, id={??}, type={cfml}, codePrintHTML={202: suiteStats=thread.suiteStats,<br>
203: runner=this <br>
<b>204: );</b><br>
205: <br>
206: // verify call backs<br>
}}, {Raw_Trace={system.runners.bddrunner_cfc$cf.udfCall(/testbox/system/runners/BDDRunner.cfc:75)}, codePrintPlain={73: testResults=arguments.testResults,
74: bundleStats=bundleStats,
75: callbacks=arguments.callbacks
76: );
77:
}, column={0}, line={75}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/runners/BDDRunner.cfc}, id={??}, type={cfml}, codePrintHTML={73: testResults=arguments.testResults,<br>
74: bundleStats=bundleStats,<br>
<b>75: callbacks=arguments.callbacks</b><br>
76: );<br>
77: <br>
}}, {Raw_Trace={system.testbox_cfc$cf.udfCall1(/testbox/system/TestBox.cfc:364)}, codePrintPlain={362: // Run via BDD Style
363: new testbox.system.runners.BDDRunner( options=variables.options, testbox=this )
364: .run( target, arguments.testResults, arguments.callbacks );
365: }
366: else{
}, column={0}, line={364}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={362: // Run via BDD Style<br>
363: new testbox.system.runners.BDDRunner( options=variables.options, testbox=this )<br>
<b>364: .run( target, arguments.testResults, arguments.callbacks );</b><br>
365: }<br>
366: else{<br>
}}, {Raw_Trace={system.testbox_cfc$cf.udfCall1(/testbox/system/TestBox.cfc:170)}, codePrintPlain={168: for( var thisBundlePath in variables.bundles ){
169: // Execute Bundle
170: testBundle( bundlePath=thisBundlePath, testResults=results, callbacks=arguments.callbacks );
171: }
172:
}, column={0}, line={170}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={168: for( var thisBundlePath in variables.bundles ){<br>
169: // Execute Bundle<br>
<b>170: testBundle( bundlePath=thisBundlePath, testResults=results, callbacks=arguments.callbacks );</b><br>
171: }<br>
172: <br>
}}, {Raw_Trace={system.testbox_cfc$cf.udfCall1(/testbox/system/TestBox.cfc:98)}, codePrintPlain={96: if( !isNull( arguments.reporter ) ){ variables.reporter = arguments.reporter; }
97: // run it and get results
98: var results = runRaw( argumentCollection=arguments );
99: // store latest results
100: variables.result = results;
}, column={0}, line={98}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={96: if( !isNull( arguments.reporter ) ){ variables.reporter = arguments.reporter; }<br>
97: // run it and get results<br>
<b>98: var results = runRaw( argumentCollection=arguments );</b><br>
99: // store latest results<br>
100: variables.result = results;<br>
}}, {Raw_Trace={_testrunner_cfc$cf.udfCall(/test/_testRunner.cfc:281)}, codePrintPlain={279: ,onSpecEnd = function( bundle, testResults, suite, spec ){}*/
280: } // callbacks
281: ); // report = tb.run
282:
283: // get the result
}, column={0}, line={281}, template={/home/runner/work/Lucee/Lucee/test/_testRunner.cfc}, id={??}, type={cfml}, codePrintHTML={279: ,onSpecEnd = function( bundle, testResults, suite, spec ){}*/<br>
280: } // callbacks<br>
<b>281: ); // report = tb.run</b><br>
282: <br>
283: // get the result<br>
}}, {Raw_Trace={run_tests_cfm180$cf.call(/test/run-tests.cfm:260)}, codePrintPlain={258: systemOutput(NL & "-------------- Start Tests -----------", true);
259: silent {
260: testResults = new test._testRunner().runTests();
261: }
262:
}, column={0}, line={260}, template={/home/runner/work/Lucee/Lucee/test/run-tests.cfm}, id={??}, type={cfml}, codePrintHTML={258: systemOutput(NL & "-------------- Start Tests -----------", true);<br>
259: silent {<br>
<b>260: testResults = new test._testRunner().runTests();</b><br>
261: }<br>
262: <br>
}}]
Loading