[Groonga-mysql-commit] mroonga/mroonga [master] [test] follow mrn_index_name_gen() API change.

アーカイブの一覧に戻る

null+****@clear***** null+****@clear*****
2011年 9月 1日 (木) 17:10:20 JST


Kouhei Sutou	2011-09-01 08:10:20 +0000 (Thu, 01 Sep 2011)

  New Revision: 900c4f857b2a29a6b29cec0d662709cc4977f2ba

  Log:
    [test] follow mrn_index_name_gen() API change.

  Modified files:
    test/unit/test_mrn_sys.c

  Modified: test/unit/test_mrn_sys.c (+5 -6)
===================================================================
--- test/unit/test_mrn_sys.c    2011-09-01 08:09:59 +0000 (5e0ac4f)
+++ test/unit/test_mrn_sys.c    2011-09-01 08:10:20 +0000 (dafc9e7)
@@ -1,4 +1,6 @@
-/* Copyright(C) 2010 Tetsuro IKEDA
+/*
+  Copyright(C) 2010 Tetsuro IKEDA
+  Copyright(C) 2011 Kouhei Sutou <kou****@clear*****>
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -192,10 +194,7 @@ void test_mrn_table_name_gen()
 void test_mrn_index_name_gen()
 {
   char buf[64], buf2[64];
-  const char *arg = "./hoge/fuga";
+  const char *arg = "./db/users";
   mrn_table_name_gen(arg, buf);
-  cut_assert_equal_string("fuga_0000", mrn_index_name_gen(buf, 0, buf2));
-  cut_assert_equal_string("fuga_0001", mrn_index_name_gen(buf, 1, buf2));
-  cut_assert_equal_string("fuga_0020", mrn_index_name_gen(buf, 20, buf2));
-  cut_assert_equal_string("fuga_0300", mrn_index_name_gen(buf, 300, buf2));
+  cut_assert_equal_string("users_name", mrn_index_name_gen(buf, "name", buf2));
 }




Groonga-mysql-commit メーリングリストの案内
アーカイブの一覧に戻る