[gnome-builder/gnome-builder-3-24] file-settings: add a couple sanity checks



commit 0379d90224427c38b4d5bb37b7711b7384347128
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jul 7 19:20:18 2017 -0700

    file-settings: add a couple sanity checks

 tests/test-ide-file-settings.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-ide-file-settings.c b/tests/test-ide-file-settings.c
index 6e08aa2..88c2301 100644
--- a/tests/test-ide-file-settings.c
+++ b/tests/test-ide-file-settings.c
@@ -62,6 +62,7 @@ test_filesettings (void)
   g_assert_true (ide_file_settings_get_insert_trailing_newline (settings));
 
   ide_file_settings_set_newline_type (settings, GTK_SOURCE_NEWLINE_TYPE_CR);
+  g_assert_true (ide_file_settings_get_newline_type_set (settings));
   g_assert_cmpint (ide_file_settings_get_newline_type (settings), ==, GTK_SOURCE_NEWLINE_TYPE_CR);
   ide_file_settings_set_newline_type (settings, GTK_SOURCE_NEWLINE_TYPE_CR_LF);
   g_assert_cmpint (ide_file_settings_get_newline_type (settings), ==, GTK_SOURCE_NEWLINE_TYPE_CR_LF);
@@ -80,6 +81,7 @@ test_filesettings (void)
   g_assert_false (ide_file_settings_get_trim_trailing_whitespace (settings));
 
   ide_file_settings_set_show_right_margin (settings, TRUE);
+  g_assert_true (ide_file_settings_get_show_right_margin_set (settings));
   g_assert_true (ide_file_settings_get_show_right_margin (settings));
   ide_file_settings_set_show_right_margin (settings, FALSE);
   g_assert_false (ide_file_settings_get_show_right_margin (settings));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]