izapple2/cardSwyft_test.go

24 lines
445 B
Go
Raw Normal View History

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
}
at.terminateCondition = buildTerminateConditionText("HOW TO USE SWYFTCARD", testTextMode80, 10_000_000)
2022-03-08 20:11:26 +01:00
at.run()
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)
}
}