mirror of
https://github.com/ivanizag/izapple2.git
synced 2025-01-02 20:29:44 +00:00
24 lines
445 B
Go
24 lines
445 B
Go
package izapple2
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestSwyftTutorial(t *testing.T) {
|
|
at, err := makeApple2Tester("swyft", nil)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
|
|
at.terminateCondition = buildTerminateConditionText("HOW TO USE SWYFTCARD", testTextMode80, 10_000_000)
|
|
|
|
at.run()
|
|
|
|
text := at.getText(testTextMode80)
|
|
if !strings.Contains(text, "HOW TO USE SWYFTCARD") {
|
|
t.Errorf("Expected 'HOW TO USE SWYFTCARD', got '%s'", text)
|
|
}
|
|
|
|
}
|