-
Notifications
You must be signed in to change notification settings - Fork 220
Language CFML
kazk edited this page Jan 24, 2020
·
5 revisions
Unreleased
Lucee v5.2
The solution and the tests are written to Solution.cfc
and SolutionTest.cfc
respectively.
Optional preloaded code is written to Preloaded.cfc
if given.
component {
function add(required a, required b) {
return a + b;
}
}
component extends="testbox.system.BaseSpec" {
function beforeAll(){
SUT = createObject( 'Solution' );
}
function run(){
describe( "Example", function(){
it( 'add(a, b) returns sum', function(){
expect( SUT.add(1, 1) ).toBe( 2 );
});
});
}
}
12 seconds
None
None