izapple2/cardDan2Controller_test.go

27 lines
518 B
Go
Raw Normal View History

2024-01-30 00:33:53 +01:00
package izapple2
import (
"strings"
"testing"
)
func TestDan2Controller(t *testing.T) {
overrides := newConfiguration()
overrides.set(confS7, "dan2sd,slot1=resources/ProDOS_2_4_3.po")
at, err := makeApple2Tester("2enh", overrides)
if err != nil {
t.Fatal(err)
}
at.terminateCondition = buildTerminateConditionText("NEW VOL", testTextMode40, 10_000_000)
2024-01-30 00:33:53 +01:00
at.run()
text := at.getText(testTextMode40)
2024-01-30 00:33:53 +01:00
if !strings.Contains(text, "NEW VOL") {
t.Errorf("Expected Bitsy Bye screen, got '%s'", text)
}
}