aboutsummaryrefslogtreecommitdiff
path: root/tests/message.rs
blob: 4b1f18c6e1fe768237a8dbbbe004a77965e2fae8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
// SPDX-License-Identifier: MIT

use std::io::Result;

use dialog::DialogBox;

#[test]
fn text() -> Result<()> {
    dialog::Message::new("This is a message.").show()
}

#[test]
fn text_title() -> Result<()> {
    dialog::Message::new("This is a message.")
        .title("And this is a title:")
        .show()
}