Commits

shuerhaaken committed 70a7a26

add C test for rating

  • Participants
  • Parent commits 9f7c991

Comments (0)

Files changed (2)

+commit 9f7c991703fcd0b38ed7af0d7a7cc08068b66efd
+Author: Jörn Magens <shuerhaaken@googlemail.com>
+Date:   Thu Mar 21 15:42:55 2013 +0100
+
+    update bindings
+
 commit 72566ede8b7a6ad9427c983ebeba60991aa08e4d
 Author: Jörn Magens <shuerhaaken@googlemail.com>
 Date:   Thu Mar 21 15:34:11 2013 +0100

File tests/ctest_write/main.c

     taginfo_info_set_title(info, TESTTITLE);
     taginfo_info_set_albumartist(info, TESTTITLE "äé");
     taginfo_info_set_is_compilation(info, 1);
+    taginfo_info_set_rating(info, 3);
     int labels_length = 2;
     char** labels = malloc(labels_length * sizeof(char*));
     labels[0] = strdup("label 1 äöü");
            check_list_equal(labels, labels_length, out_labels_album, out_labels_length_album) &&
            check_list_equal(labels, labels_length, out_labels_track, out_labels_length_track) &&
            strcmp(taginfo_info_get_albumartist(info), (TESTTITLE "äé")) == 0 &&
-           taginfo_info_get_is_compilation(info)) {
+           taginfo_info_get_is_compilation(info) &&
+           taginfo_info_get_rating(info) == 3) {
             
             for(j = 0; j < labels_length; j++) {
                 free(labels[j]);