[easytag] Add a simple undo key test
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Add a simple undo key test
- Date: Sat, 21 Feb 2015 18:11:50 +0000 (UTC)
commit d5ec560efd040fcb065907678a819ec513e51920
Author: David King <amigadave amigadave com>
Date: Sat Feb 21 16:25:13 2015 +0000
Add a simple undo key test
tests/test-misc.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-misc.c b/tests/test-misc.c
index a63f953..4a4276a 100644
--- a/tests/test-misc.c
+++ b/tests/test-misc.c
@@ -97,6 +97,16 @@ misc_filename_prepare (void)
}
}
+static void
+misc_undo_key (void)
+{
+ guint undo_key;
+
+ undo_key = et_undo_key_new ();
+ g_assert_cmpint (undo_key, >, 0U);
+ g_assert_cmpint (undo_key, <, et_undo_key_new ());
+}
+
int
main (int argc, char** argv)
{
@@ -104,6 +114,7 @@ main (int argc, char** argv)
g_test_add_func ("/misc/convert-duration", misc_convert_duration);
g_test_add_func ("/misc/filename-prepare", misc_filename_prepare);
+ g_test_add_func ("/misc/undo-key", misc_undo_key);
return g_test_run ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]