From 982a07a58458ebbfc0b17c23ef6000d13e9a2aba Mon Sep 17 00:00:00 2001 From: Horimoto Yasuhiro Date: Mon, 2 Mar 2026 09:23:54 +0900 Subject: [PATCH 1/2] ci: add Ruby 4.0 --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4a8d6368..1e516546 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,6 +18,7 @@ jobs: - "3.2" - "3.3" - "3.4" + - "4.0" steps: - uses: actions/checkout@v6 - uses: ruby/setup-ruby@v1 From 4854efb47df5864aaec8ab6f4428f19ce128a756 Mon Sep 17 00:00:00 2001 From: Horimoto Yasuhiro Date: Mon, 2 Mar 2026 09:59:02 +0900 Subject: [PATCH 2/2] test: fix a wrong argument Groonga::Expression#snippet expects two-dimensional array as the first argument. Therefore, if we want to pass an empty tag, we should use "[[]]" instead of "[]". --- test/test-expression.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-expression.rb b/test/test-expression.rb index 8d290976..f4c23be7 100644 --- a/test/test-expression.rb +++ b/test/test-expression.rb @@ -135,7 +135,7 @@ def test_snippet_without_tags expression.parse("ラングバ", :default_column => name) expression.compile - snippet = expression.snippet([], :width => 30) + snippet = expression.snippet([[]], :width => 30) assert_equal(["ラングバプロジェクト"], snippet.execute("ラングバプロジェクトはカラムストア機能も")) snippet.close