summaryrefslogtreecommitdiff
path: root/vendored/mpd/tests/stickers.rs
blob: 61aead6c620a316850d4ebf271215cc2e4f3e799 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate mpd;

mod helpers;
use helpers::connect;

#[test]
/// Creating a sticker and then getting that sticker returns the value that was set.
fn set_sticker() {
    let mut mpd = connect();

    static VALUE: &'static str = "value";

    mpd.set_sticker("song", "empty.flac", "test_sticker", VALUE).unwrap();

    let sticker = mpd.sticker("song", "empty.flac", "test_sticker").unwrap();
    assert_eq!(sticker, VALUE);
}