izapple2/cardSwyft_test.go

24 lines
427 B
Go
Raw Permalink Normal View History

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