[Groonga-commit] ranguba/rroonga at bc8c421 [master] Add a missing test file

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Nov 10 22:30:53 JST 2015


Kouhei Sutou	2015-11-10 22:30:53 +0900 (Tue, 10 Nov 2015)

  New Revision: bc8c4213488a14f35c92d5952964a6fcf21dd79e
  https://github.com/ranguba/rroonga/commit/bc8c4213488a14f35c92d5952964a6fcf21dd79e

  Message:
    Add a missing test file

  Added files:
    test/test-conf.rb

  Added: test/test-conf.rb (+31 -0) 100644
===================================================================
--- /dev/null
+++ test/test-conf.rb    2015-11-10 22:30:53 +0900 (c099b22)
@@ -0,0 +1,31 @@
+# Copyright (C) 2015  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
+# License version 2.1 as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+class ConfTest < Test::Unit::TestCase
+  include GroongaTestUtils
+
+  setup :setup_database
+
+  sub_test_case "#[]" do
+    test "existent" do
+      context.conf["rroonga.key"] = "value"
+      assert_equal("value", context.conf["rroonga.key"])
+    end
+
+    test "nonexistent" do
+      assert_nil(context.conf["nonexistent"])
+    end
+  end
+end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index