forked from Mirrors/bubbletea
17 lines
244 B
Go
17 lines
244 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.setAltScreen(true)
|
||
|
if r.altScreen() {
|
||
|
t.Errorf("altScreen should always return false")
|
||
|
}
|
||
|
}
|