Loading static/js/exercises.mjs +2 −2 Original line number Diff line number Diff line Loading @@ -195,7 +195,7 @@ export const pooltest = test("Pooltest Sommersemester 2024", async function () { this.describe(`Lasse dir den Inhalt der Datei "reverse.txt" anzeigen und schreibe den Inhalt in umgekehrter Reihenfolge in eine neue Datei mit dem Namen "correct.txt"`) await this.prepareWith("echo 'amanaP :lanac a ,nalp a ,nam A' > reverse.txt; "+ await this.prepareWith("echo '?was I tac a ro rac a ti saW' > reverse.txt; "+ // Because "rev" doesn't work in this BusyBox installation, we create a set of scripts to emulate its behavior "rm /bin/rev; "+ "echo 'i=$(( ${#1}-1 )); while [ $i -ge 0 ]; do printf \"${1:i:1}\"; i=$(( $i-1 )); done; echo' > /tmp/revline.sh; "+ Loading @@ -205,7 +205,7 @@ export const pooltest = test("Pooltest Sommersemester 2024", async function () { await this.manualConfirmation() this.verify("cat correct.txt").hasOutput("A man, a plan, a canal: Panama") this.verify("cat correct.txt").hasOutput("Was it a car or a cat I saw?") }) this.exercise("Ordner erstellen", async function () { Loading Loading
static/js/exercises.mjs +2 −2 Original line number Diff line number Diff line Loading @@ -195,7 +195,7 @@ export const pooltest = test("Pooltest Sommersemester 2024", async function () { this.describe(`Lasse dir den Inhalt der Datei "reverse.txt" anzeigen und schreibe den Inhalt in umgekehrter Reihenfolge in eine neue Datei mit dem Namen "correct.txt"`) await this.prepareWith("echo 'amanaP :lanac a ,nalp a ,nam A' > reverse.txt; "+ await this.prepareWith("echo '?was I tac a ro rac a ti saW' > reverse.txt; "+ // Because "rev" doesn't work in this BusyBox installation, we create a set of scripts to emulate its behavior "rm /bin/rev; "+ "echo 'i=$(( ${#1}-1 )); while [ $i -ge 0 ]; do printf \"${1:i:1}\"; i=$(( $i-1 )); done; echo' > /tmp/revline.sh; "+ Loading @@ -205,7 +205,7 @@ export const pooltest = test("Pooltest Sommersemester 2024", async function () { await this.manualConfirmation() this.verify("cat correct.txt").hasOutput("A man, a plan, a canal: Panama") this.verify("cat correct.txt").hasOutput("Was it a car or a cat I saw?") }) this.exercise("Ordner erstellen", async function () { Loading