[Groonga-commit] groonga/groonga at 690df29 [master] test: follow time output change

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Fri May 6 10:45:26 JST 2016


Kouhei Sutou	2016-05-06 10:45:26 +0900 (Fri, 06 May 2016)

  New Revision: 690df29715cd2b6c8bdfa4201c565f6d75259f15
  https://github.com/groonga/groonga/commit/690df29715cd2b6c8bdfa4201c565f6d75259f15

  Message:
    test: follow time output change

  Modified files:
    test/unit/core/test-inspect.c
    test/unit/util/test-string.c

  Modified: test/unit/core/test-inspect.c (+2 -2)
===================================================================
--- test/unit/core/test-inspect.c    2016-05-06 10:28:33 +0900 (7f8a179)
+++ test/unit/core/test-inspect.c    2016-05-06 10:45:26 +0900 (99a96f9)
@@ -1,6 +1,6 @@
 /* -*- c-basic-offset: 2; coding: utf-8 -*- */
 /*
-  Copyright (C) 2010-2014  Kouhei Sutou <kou �� clear-code.com>
+  Copyright (C) 2010-2016  Kouhei Sutou <kou �� clear-code.com>
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -314,7 +314,7 @@ test_time(void)
                (gint64)g_time_value.tv_sec * G_USEC_PER_SEC +
                g_time_value.tv_usec);
   inspected = grn_inspect(context, NULL, time_value);
-  cut_assert_equal_string(cut_take_printf("%ld.29", g_time_value.tv_sec),
+  cut_assert_equal_string(cut_take_printf("%ld.290000", g_time_value.tv_sec),
                           inspected_string());
 }
 

  Modified: test/unit/util/test-string.c (+2 -2)
===================================================================
--- test/unit/util/test-string.c    2016-05-06 10:28:33 +0900 (8ab8bb7)
+++ test/unit/util/test-string.c    2016-05-06 10:45:26 +0900 (8e15f5a)
@@ -1,6 +1,6 @@
 /* -*- c-basic-offset: 2; coding: utf-8 -*- */
 /*
-  Copyright (C) 2008-2015  Kouhei Sutou <kou �� clear-code.com>
+  Copyright (C) 2008-2016  Kouhei Sutou <kou �� clear-code.com>
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -714,7 +714,7 @@ data_text_otoj(void)
   ADD_DATUM("Float", cut_take_printf("%g", 2.9), GRN_DB_FLOAT,
             "value", G_TYPE_DOUBLE, 2.9,
             NULL);
-  ADD_DATUM("Time", "1271053050.21148", GRN_DB_TIME,
+  ADD_DATUM("Time", "1271053050.211479", GRN_DB_TIME,
             "value", G_TYPE_INT64, GRN_TIME_PACK(1271053050, 211479),
             NULL);
   ADD_DATUM("ShortText",
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る