tablo-core 0.9.0

The core toolkit types for Tablo, a server-rendered admin toolkit on Topcoat and Toasty.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::initials;

/// An avatar shows the first letters of the name's first two words.
#[test]
fn initials_take_the_first_two_words() {
    assert_eq!(initials("Ada Lovelace"), "AL");
    assert_eq!(initials("grace brewster murray hopper"), "GB");
    assert_eq!(initials("Ken"), "K");
    assert_eq!(initials("  "), "");
    assert_eq!(initials("éric ölund"), "ÉÖ");
}