test-cleancode: check some of the examples too

This commit is contained in:
Delyan Angelov 2021-02-04 17:34:49 +02:00
parent 3e4e0a35e3
commit 32cc95a340
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
8 changed files with 67 additions and 55 deletions

View file

@ -84,12 +84,14 @@ fn frame(x voidptr) {
app.redraw = false
}
mut app := &App{}
app.tui = tui.init(
user_data: app
event_fn: event
frame_fn: frame
hide_cursor: true
frame_rate: 60
)
app.tui.run() ?
fn main() {
mut app := &App{}
app.tui = tui.init(
user_data: app
event_fn: event
frame_fn: frame
hide_cursor: true
frame_rate: 60
)
app.tui.run() ?
}