Thematische Lernwege im A1-Kurs standardmäßig empfehlen
Die bisherige Auswahl verbindet Lernbereiche nicht thematisch und kann freies Sprechen ohne passende Vorbereitung anbieten. Der Bankbetrieb empfiehlt nun 60 redaktionell verknüpfte Themen in sechs Lernmodulen: Hören, Wortschatz, Lesen, Nachsprechen, Grammatik, angeleitetes und freies Schreiben, freies Sprechen. Speichert die Lernwegposition getrennt von Leistungsnachweisen. Unbeantwortete Schritte bleiben empfohlen und sind explizit überspringbar; nach einer tatsächlich bewerteten schwachen Antwort gibt es höchstens eine Wiederholung ohne Notensperre. Bereichswahl, Muttersprache, historische Aufgaben und A1-Tests bleiben unabhängig. Deutsch und Russisch zeigen Thema und Schritt; vorhandene Aufgabeninhalte und Bewertungen werden nicht umgeschrieben. Keine zusätzlichen Modellaufrufe. Validierung: Go-Race-Suite mit eigener lokaler PostgreSQL-Testdatenbank, go vet, Web-Build, Bank-/Varianten-/Sequenzaudits und lokale Kurs-/Sprachen-/Admin-Smokes. Regressionsfall: passendes Schreiben vor freiem Sprechen über zwei Freunde. Keine Live-Anbieterprüfung oder Produktionsänderung.
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
package store
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestReviewedSequencesProtectPreparation(t *testing.T) {
|
||||
pack, err := bundledSequences()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
base, err := BundledBank()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if len(pack.Sequences) != 60 {
|
||||
t.Fatal(len(pack.Sequences))
|
||||
}
|
||||
copyPack := func() sequencePack {
|
||||
raw, _ := json.Marshal(pack)
|
||||
var copy sequencePack
|
||||
if err := json.Unmarshal(raw, ©); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
return copy
|
||||
}
|
||||
t.Run("no free speech first", func(t *testing.T) {
|
||||
copy := copyPack()
|
||||
copy.Sequences[0].Steps[0] = copy.Sequences[0].Steps[len(copy.Sequences[0].Steps)-1]
|
||||
if validateSequences(copy, base) == nil {
|
||||
t.Fatal("unprepared speaking accepted")
|
||||
}
|
||||
})
|
||||
t.Run("no unrelated writing at the end", func(t *testing.T) {
|
||||
copy := copyPack()
|
||||
n := len(copy.Sequences[0].Steps)
|
||||
other := copy.Sequences[1]
|
||||
copy.Sequences[0].Steps[n-2] = other.Steps[len(other.Steps)-2]
|
||||
if validateSequences(copy, base) == nil {
|
||||
t.Fatal("unrelated writing accepted")
|
||||
}
|
||||
})
|
||||
t.Run("both native titles required", func(t *testing.T) {
|
||||
copy := copyPack()
|
||||
delete(copy.Sequences[0].Titles, "ru-RU")
|
||||
if validateSequences(copy, base) == nil {
|
||||
t.Fatal("missing Russian topic accepted")
|
||||
}
|
||||
})
|
||||
for _, module := range []string{"introductions", "family", "numbers_time", "daily_life", "food_shopping", "home_city"} {
|
||||
positions := sequencePositions(pack, "a1_"+module+"_v1")
|
||||
if len(positions) == 0 || positions[0].Step.Phase != "listen" {
|
||||
t.Fatal("no listening entry", module)
|
||||
}
|
||||
for _, native := range []string{"de-DE", "ru-RU"} {
|
||||
r := recommendationAt(pack, positions, 0, 0, "", native)
|
||||
if r.Topic != 1 || r.Topics != 10 || r.Title == "" || r.Complete {
|
||||
t.Fatal(r)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user