Commit 704c8269 authored by Jakob Moser's avatar Jakob Moser
Browse files

Remove . from all sentences because it confused users

parent 5b36aae9
Loading
Loading
Loading
Loading
+13 −13
Original line number Diff line number Diff line
@@ -70,20 +70,20 @@ export const practice = test("Linux-Übungsmodus", function() {
    })

    this.exercise("Datei anlegen", async function () {
        this.describe(`Erstelle eine Textdatei mit dem Namen "satz" und dem Inhalt "Colorless green ideas sleep furiously." 
        this.describe(`Erstelle eine Textdatei mit dem Namen "satz" und dem Inhalt "Colorless green ideas sleep furiously"
                      (jeweils ohne Anführungszeichen).`)

        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; if [[ -f satz ]]; then rm satz; fi")

        await this.manualConfirmation()

        this.verify("cat satz").hasOutput("Colorless green ideas sleep furiously.")
        this.verify("cat satz").hasOutput("Colorless green ideas sleep furiously")
    })

    this.exercise("Datei umbenennen", async function () {
        this.describe(`Ändere den Namen der Datei "satz" in "saetze".`)

        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; if [[ -f saetze ]]; then rm saetze; fi; if [[ ! -f satz ]]; then echo Colorless green ideas sleep furiously. > satz; fi")
        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; if [[ -f saetze ]]; then rm saetze; fi; if [[ ! -f satz ]]; then echo Colorless green ideas sleep furiously > satz; fi")

        await this.manualConfirmation()

@@ -91,29 +91,29 @@ export const practice = test("Linux-Übungsmodus", function() {
    })

    this.exercise("Datei bearbeiten", async function () {
        this.describe(`Füge die Zeile "The cat is on the mat." ans Ende der Datei "saetze" an.`)
        this.describe(`Füge die Zeile "The cat is on the mat" ans Ende der Datei "saetze" an.`)

        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; echo Colorless green ideas sleep furiously. > saetze")
        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; echo Colorless green ideas sleep furiously > saetze")

        await this.manualConfirmation()

        this.verify("cat saetze").hasOutput(["Colorless green ideas sleep furiously.", "The cat is on the mat."])
        this.verify("cat saetze").hasOutput(["Colorless green ideas sleep furiously", "The cat is on the mat"])
    })

    this.exercise("Inhalt anzeigen", async function () {
        this.describe(`Zeige den Inhalt der Datei "saetze" auf der Konsole an.`)

        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; echo Colorless green ideas sleep furiously. > saetze; echo The cat is on the mat. >> saetze")
        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; echo Colorless green ideas sleep furiously > saetze; echo The cat is on the mat >> saetze")

        await this.manualConfirmation()

        this.verify().hasOutput(["Colorless green ideas sleep furiously.", "The cat is on the mat."])
        this.verify().hasOutput(["Colorless green ideas sleep furiously", "The cat is on the mat"])
    })

    this.exercise("Berechtigungen ändern", async function () {
        this.describe(`Ändere die Dateirechte von "saetze" so, dass der Besitzer die Datei nur lesen kann, die besitzende Gruppe die Datei lesen und schreiben kann und alle anderen gar nichts dürfen.`)

        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; echo Colorless green ideas sleep furiously. > saetze; echo The cat is on the mat. >> saetze; chmod 644 saetze")
        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; echo Colorless green ideas sleep furiously > saetze; echo The cat is on the mat >> saetze; chmod 644 saetze")

        await this.manualConfirmation()

@@ -125,7 +125,7 @@ export const practice = test("Linux-Übungsmodus", function() {
    this.exercise("Berechtigungen anzeigen", async function () {
        this.describe(`Lass dir die aktuellen Berechtigungen für die Datei "saetze" anzeigen.`)

        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; if [[ ! -f saetze ]]; then echo Colorless green ideas sleep furiously. > saetze; echo The cat is on the mat. >> saetze; fi; chmod 460 saetze")
        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; if [[ ! -f saetze ]]; then echo Colorless green ideas sleep furiously > saetze; echo The cat is on the mat >> saetze; fi; chmod 460 saetze")

        await this.manualConfirmation()

@@ -143,7 +143,7 @@ export const practice = test("Linux-Übungsmodus", function() {
    this.exercise("Datei löschen", async function () {
        this.describe(`Lösche die Datei "saetze".`)

        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; if [[ ! -f saetze ]]; then echo Colorless green ideas sleep furiously. > saetze; echo The cat is on the mat. >> saetze; fi; chmod 460 saetze")
        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; if [[ ! -f saetze ]]; then echo Colorless green ideas sleep furiously > saetze; echo The cat is on the mat >> saetze; fi; chmod 460 saetze")

        await this.manualConfirmation()

@@ -177,14 +177,14 @@ export const pooltest = test("Pooltest Sommersemester 2022", async function () {

    this.exercise("Datei anlegen", async function () {
        this.describe(`Erstelle eine Datei mit dem Namen "botschaft" und dem Inhalt
        "Der Junge sieht den Mann mit dem Fernglas." (jeweils ohne
        "Der Junge sieht den Mann mit dem Fernglas" (jeweils ohne
        Anführungszeichen)`)

        // Wait until the user confirms that they believe they are done with the exercise ...
        await this.manualConfirmation()

        // ... then verify the existence of the file with the correct output
        this.verify("cat botschaft").hasOutput("Der Junge sieht den Mann mit dem Fernglas.")
        this.verify("cat botschaft").hasOutput("Der Junge sieht den Mann mit dem Fernglas")
    })

    this.exercise("Berechtigungen anpassen", async function () {