mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 11:09:17 -07:00
17 lines
242 B
Go
17 lines
242 B
Go
package tea
|
|
|
|
import "testing"
|
|
|
|
func TestNilRenderer(t *testing.T) {
|
|
r := nilRenderer{}
|
|
r.start()
|
|
r.stop()
|
|
r.kill()
|
|
r.write("a")
|
|
r.repaint()
|
|
r.enterAltScreen()
|
|
if r.altScreen() {
|
|
t.Errorf("altScreen should always return false")
|
|
}
|
|
}
|