improve test case #5729
GitHub Actions / Test Results
failed
Jan 12, 2024 in 0s
1 fail, 82 skipped, 2 346 pass in 6m 18s
Annotations
Check warning on line 0 in test.jira.Jira2675
github-actions / Test Results
testFloat (test.jira.Jira2675) failed
test/reports/junit-test-results-5.4.5.6-SNAPSHOT.xml [took 0s]
Raw output
Expected [0.0905] but received [0.090499997139]
[{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.compat.framework.testcase_cfc$cf.udfCall2(/testbox/system/compat/framework/TestCase.cfc:183)}, codePrintPlain={181: */
182: function assertEquals( required any expected, required any actual, message="" ){
183: this.$assert.isEqual( arguments.expected, arguments.actual, arguments.message );
184: }
185:
}, column={0}, line={183}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/compat/framework/TestCase.cfc}, id={??}, type={cfml}, codePrintHTML={181: */<br>
182: function assertEquals( required any expected, required any actual, message="" ){<br>
<b>183: this.$assert.isEqual( arguments.expected, arguments.actual, arguments.message );</b><br>
184: }<br>
185: <br>
}}, {Raw_Trace={jira.jira2675_cfc$cf.udfCall(/test/jira/Jira2675.cfc:34)}, codePrintPlain={32: public void function testFloat(){
33: f=createObject('java','java.lang.Float').parseFloat("0.0905");
34: assertEquals("0.0905",f);
35:
36: }
}, column={0}, line={34}, template={/home/runner/work/Lucee/Lucee/test/jira/Jira2675.cfc}, id={??}, type={cfml}, codePrintHTML={32: public void function testFloat(){<br>
33: f=createObject('java','java.lang.Float').parseFloat("0.0905");<br>
<b>34: assertEquals("0.0905",f);</b><br>
35: <br>
36: }<br>
}}, {Raw_Trace={system.basespec_cfc$cf.udfCall3(/testbox/system/BaseSpec.cfc:701)}, codePrintPlain={699: // Execute Spec
700: try{
701: evaluate( "this.#arguments.spec.name#()" );
702:
703: // Where we expecting an exception and it did not throw?
}, column={0}, line={701}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/BaseSpec.cfc}, id={??}, type={cfml}, codePrintHTML={699: // Execute Spec<br>
700: try{<br>
<b>701: evaluate( "this.#arguments.spec.name#()" );</b><br>
702: <br>
703: // Where we expecting an exception and it did not throw?<br>
}}, {Raw_Trace={system.runners.unitrunner_cfc$cf.udfCall(/testbox/system/runners/UnitRunner.cfc:186)}, codePrintPlain={184: suiteStats=thread.suiteStats,
185: runner=this
186: );
187:
188: // verify call backs
}, column={0}, line={186}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/runners/UnitRunner.cfc}, id={??}, type={cfml}, codePrintHTML={184: suiteStats=thread.suiteStats,<br>
185: runner=this <br>
<b>186: );</b><br>
187: <br>
188: // verify call backs<br>
}}, {Raw_Trace={system.runners.unitrunner_cfc$cf.udfCall(/testbox/system/runners/UnitRunner.cfc:71)}, codePrintPlain={69: testResults=arguments.testResults,
70: bundleStats=bundleStats,
71: callbacks=arguments.callbacks
72: );
73:
}, column={0}, line={71}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/runners/UnitRunner.cfc}, id={??}, type={cfml}, codePrintHTML={69: testResults=arguments.testResults,<br>
70: bundleStats=bundleStats,<br>
<b>71: callbacks=arguments.callbacks</b><br>
72: );<br>
73: <br>
}}, {Raw_Trace={system.testbox_cfc$cf.udfCall1(/testbox/system/TestBox.cfc:369)}, codePrintPlain={367: // Run via xUnit Style
368: new testbox.system.runners.UnitRunner( options=variables.options,testbox=this )
369: .run( target, arguments.testResults, arguments.callbacks );
370: }
371:
}, column={0}, line={369}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={367: // Run via xUnit Style<br>
368: new testbox.system.runners.UnitRunner( options=variables.options,testbox=this )<br>
<b>369: .run( target, arguments.testResults, arguments.callbacks );</b><br>
370: }<br>
371: <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={run_tests_cfm180$cf.call(/test/run-tests.cfm:358)}, codePrintPlain={356: ,onSpecEnd = function( bundle, testResults, suite, spec ){}*/
357: } // callbacks
358: ); // report = tb.run
359:
360: // get the result
}, column={0}, line={358}, template={/home/runner/work/Lucee/Lucee/test/run-tests.cfm}, id={??}, type={cfml}, codePrintHTML={356: ,onSpecEnd = function( bundle, testResults, suite, spec ){}*/<br>
357: } // callbacks<br>
<b>358: ); // report = tb.run</b><br>
359: <br>
360: // get the result<br>
}}]
Loading