Skip to content

Commit

Permalink
Cache on linux (#134)
Browse files Browse the repository at this point in the history
* Try install

* CONCAT -> CONCATENATE

* CONCATENATE is two-fer

---------

Co-authored-by: Bruce Axtens <[email protected]>
  • Loading branch information
ErikSchierboom and axtens committed Apr 19, 2024
1 parent 2efc20e commit 3291be3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,7 @@ jobs:
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5

- name: Setup COBOL
run: |
sudo apt-get update
sudo apt-get -y install curl tar libncurses5-dev libgmp-dev libdb-dev iproute2 ranger autoconf build-essential
sudo apt-get -y --purge autoremove
curl -sLk https://sourceforge.net/projects/open-cobol/files/gnu-cobol/3.1/gnucobol-3.1.2.tar.gz | tar xz
cd gnucobol-3.1.2 && ./configure --prefix=/usr && sudo make && sudo make install && sudo ldconfig
run: sudo apt update && sudo apt install -y gnucobol

- name: Fetch CobolCheck
run: bin/fetch-cobolcheck
Expand Down
3 changes: 2 additions & 1 deletion exercises/practice/luhn/.meta/proof.ci.cob
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
MOVE 0 TO WS-CARD-NUMBER
EXIT PERFORM
ELSE
MOVE CONCAT(WS-CARD-DIGITS, WS-CARD-NUMBER(WS-INDEX:1))
MOVE CONCATENATE(WS-CARD-DIGITS,
WS-CARD-NUMBER(WS-INDEX:1))
TO WS-CARD-DIGITS
END-IF
END-PERFORM.
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/two-fer/.meta/proof.ci.cob
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
IF WS-NAME EQUAL SPACE THEN
MOVE "One for you, one for me." TO WS-RESULT
ELSE
MOVE FUNCTION CONCAT("One for ",
MOVE FUNCTION CONCATENATE("One for ",
FUNCTION TRIM(WS-NAME TRAILING),", one for me.")
TO WS-RESULT
END-IF.

0 comments on commit 3291be3

Please sign in to comment.