Skip to content

Commit

Permalink
Added a test case for cfwhile tag
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmitrah committed Feb 1, 2024
1 parent 8757c77 commit 7d8ab51
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/tags/While.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
component extends="org.lucee.cfml.test.LuceeTestCase" labels="asa"{
public function run( testResults, textbox ) {
describe(title="Testcase for Cfwhile tag", body=function() {
it(title="Checking the Cfwhile tag", body=function( currentSpec ) {
cnt = 0;
while(cnt LT 2) {
cnt = cnt + 1;
}
expect(cnt).toBe(2);
expect(cnt).toBeNumeric();
});
});
}
}

0 comments on commit 7d8ab51

Please sign in to comment.