diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-04-26 23:47:58 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-04-26 23:47:58 +0200 |
commit | d3594e275e911a71361ea2a545fc4d3f1b1a686e (patch) | |
tree | 28807f255f3ff6ba21516f1512f01ab54adf7d14 /test/theme-parser-test.c | |
parent | e16d8f755aca9cf9c3b6543231f142c71e515aaf (diff) |
[Test] test configuration block in config.
Diffstat (limited to 'test/theme-parser-test.c')
-rw-r--r-- | test/theme-parser-test.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/theme-parser-test.c b/test/theme-parser-test.c index e5f13c89..30f7b17e 100644 --- a/test/theme-parser-test.c +++ b/test/theme-parser-test.c @@ -521,6 +521,17 @@ int main ( int argc, char ** argv ) } { rofi_theme = NULL; + error = 0; + rofi_theme_parse_string ( "configuration { font: \"blaat€\"; y-offset: 4; }"); + TASSERT ( error == 0 ); + + TASSERT ( g_utf8_collate ( config.font, "blaat€" ) == 0 ); + TASSERT ( config.y_offset == 4 ); + rofi_theme_free ( rofi_theme ); + rofi_theme = NULL; + } + { + rofi_theme = NULL; rofi_theme_parse_file ("/dev/null"); TASSERT ( error == 0 ); TASSERT ( rofi_theme != NULL ); |