[easytag/wip/win32: 3/6] Test EtPicture comparisons in the FileTag tests
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/win32: 3/6] Test EtPicture comparisons in the FileTag tests
- Date: Mon, 25 Jan 2016 17:56:21 +0000 (UTC)
commit 1790cbb823b8c83bdf16f31bdb8e947c8ae39732
Author: David King <amigadave amigadave com>
Date: Thu Jan 21 19:23:06 2016 +0000
Test EtPicture comparisons in the FileTag tests
tests/test-file_tag.c | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/tests/test-file_tag.c b/tests/test-file_tag.c
index e0b9b61..0d55744 100644
--- a/tests/test-file_tag.c
+++ b/tests/test-file_tag.c
@@ -1,5 +1,5 @@
/* EasyTAG - tag editor for audio files
- * Copyright (C) 2015 David King <amigadave amigadave com>
+ * Copyright (C) 2015-2016 David King <amigadave amigadave com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
@@ -104,6 +104,7 @@ file_tag_difference (void)
{
File_Tag *tag1;
File_Tag *tag2;
+ GBytes *bytes;
tag1 = et_file_tag_new ();
@@ -139,6 +140,22 @@ file_tag_difference (void)
et_file_tag_free (tag2);
et_file_tag_free (tag1);
+
+ tag1 = et_file_tag_new ();
+ bytes = g_bytes_new_static ("foo", 3);
+
+ et_file_tag_set_picture (tag1,
+ et_picture_new (ET_PICTURE_TYPE_FRONT_COVER, "", 0, 0,
+ bytes));
+
+ g_bytes_unref (bytes);
+
+ tag2 = et_file_tag_new ();
+
+ g_assert (et_file_tag_detect_difference (tag1, tag2));
+
+ et_file_tag_free (tag2);
+ et_file_tag_free (tag1);
}
int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]