2022-03-08 20:11:26 +01:00
|
|
|
package izapple2
|
|
|
|
|
|
|
|
import (
|
|
|
|
"strings"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestSwyftTutorial(t *testing.T) {
|
2024-01-06 21:48:23 +01:00
|
|
|
at, err := makeApple2Tester("swyft", nil)
|
2022-03-08 20:11:26 +01:00
|
|
|
if err != nil {
|
2024-01-06 21:48:23 +01:00
|
|
|
t.Fatal(err)
|
2022-03-08 20:11:26 +01:00
|
|
|
}
|
|
|
|
|
2024-07-28 22:37:48 +02:00
|
|
|
at.terminateCondition = buildTerminateConditionText("HOW TO USE SWYFTCARD", testTextMode80, 10_000_000)
|
2024-01-25 22:20:22 +01:00
|
|
|
|
2022-03-08 20:11:26 +01:00
|
|
|
at.run()
|
|
|
|
|
2024-07-28 22:37:48 +02:00
|
|
|
text := at.getText(testTextMode80)
|
2022-03-08 20:11:26 +01:00
|
|
|
if !strings.Contains(text, "HOW TO USE SWYFTCARD") {
|
|
|
|
t.Errorf("Expected 'HOW TO USE SWYFTCARD', got '%s'", text)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|