Skip to content

Commit

Permalink
Cobol HELLO-CONSOLE test
Browse files Browse the repository at this point in the history
  • Loading branch information
rogervinas committed Dec 11, 2023
1 parent adaeedb commit 8776061
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/cobol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ jobs:
cobc --version
- name: Test
run: ./cobolcheck -p HELLO
run: |
./cobolcheck -p HELLO
./cobolcheck -p HELLO-CONSOLE
- name: Test Report
uses: dorny/test-reporter@v1
Expand Down
1 change: 1 addition & 0 deletions cobol/src/main/cobol/HELLO-CONSOLE.CBL
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
01 MSG PIC A(20).

PROCEDURE DIVISION USING MSG.
HELLO-CONSOLE.
DISPLAY MSG.
5 changes: 5 additions & 0 deletions cobol/src/test/cobol/HELLO-CONSOLE/HELLO-CONSOLE.cut
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
TestSuite "HELLO-CONSOLE"

TestCase "SHOULD DISPLAY HELLO MESSAGE"
MOVE "HELLO TEST!" TO MSG
PERFORM HELLO-CONSOLE

0 comments on commit 8776061

Please sign in to comment.