Code

data_test: Fixed a typo.
authorSebastian Harl <sh@tokkee.org>
Tue, 7 Oct 2014 19:11:34 +0000 (21:11 +0200)
committerSebastian Harl <sh@tokkee.org>
Tue, 7 Oct 2014 19:11:34 +0000 (21:11 +0200)
t/unit/core/data_test.c

index 88765a47f6176c126eb39858de023f15c926f394..9d52d2279f2622fdf845999a9de5bc0a22fa3b0a 100644 (file)
@@ -114,7 +114,7 @@ START_TEST(test_data)
        fail_unless(!memcmp(d1.data.binary.datum, d2.data.binary.datum,
                                d2.data.binary.length),
                        "sdb_data_copy() didn't copy binary data: got: %s; expected: %s",
-                       d1.data.string, d2.data.string);
+                       d1.data.binary.datum, d2.data.binary.datum);
 
        sdb_data_free_datum(&d1);
        fail_unless(d1.data.binary.length == 0,
@@ -136,7 +136,7 @@ START_TEST(test_data)
                        d1.data.binary.length, d2.data.binary.length);
        fail_unless(d1.data.binary.datum == d2.data.binary.datum,
                        "sdb_data_copy() didn't copy binary data: got: %s; expected: %s",
-                       d1.data.string, d2.data.string);
+                       d1.data.binary.datum, d2.data.binary.datum);
 
        sdb_data_free_datum(&d1);
        fail_unless(d1.data.binary.length == 0,