mirror of
https://github.com/ivanizag/izapple2.git
synced 2024-12-28 02:30:36 +00:00
27 lines
498 B
Go
27 lines
498 B
Go
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(at, "NEW VOL", true, 10_000_000)
|
|
|
|
at.run()
|
|
|
|
text := at.getText()
|
|
if !strings.Contains(text, "NEW VOL") {
|
|
t.Errorf("Expected Bitsy Bye screen, got '%s'", text)
|
|
}
|
|
|
|
}
|