[Groonga-commit] groonga/groonga at 254655e [master] test: drop timezone information

Back to archive index
Kouhei Sutou null+****@clear*****
Fri May 17 12:37:42 JST 2019


Kouhei Sutou	2019-05-17 12:37:42 +0900 (Fri, 17 May 2019)

  Revision: 254655ea8c4c6aece866652d701dd5c69d3b9ea9
  https://github.com/groonga/groonga/commit/254655ea8c4c6aece866652d701dd5c69d3b9ea9

  Message:
    test: drop timezone information
    
    It's not portable. For example, "+0900" on Linux and "Tokyo Standard
    Time" on Windows.

  Modified files:
    test/command/suite/ruby/eval/convert/string_to_time/over_int32.expected
    test/command/suite/ruby/eval/convert/string_to_time/over_int32.test

  Modified: test/command/suite/ruby/eval/convert/string_to_time/over_int32.expected (+2 -2)
===================================================================
--- test/command/suite/ruby/eval/convert/string_to_time/over_int32.expected    2019-05-17 12:06:51 +0900 (be9f1d8c0)
+++ test/command/suite/ruby/eval/convert/string_to_time/over_int32.expected    2019-05-17 12:37:42 +0900 (b0d9e9b03)
@@ -1,4 +1,4 @@
 plugin_register ruby/eval
 [[0,0.0,0.0],true]
-ruby_eval 'Groonga::Converter.convert("2039/1/1 00:00:00", Time).to_s'
-[[0,0.0,0.0],{"value":"2039-01-01 00:00:00 +0900"}]
+ruby_eval 'Groonga::Converter.convert("2039/1/1 00:00:00", Time).to_s.gsub(/ [+a-zA-Z].*\\z/, "")'
+[[0,0.0,0.0],{"value":"2039-01-01 00:00:00"}]

  Modified: test/command/suite/ruby/eval/convert/string_to_time/over_int32.test (+1 -1)
===================================================================
--- test/command/suite/ruby/eval/convert/string_to_time/over_int32.test    2019-05-17 12:06:51 +0900 (321e18285)
+++ test/command/suite/ruby/eval/convert/string_to_time/over_int32.test    2019-05-17 12:37:42 +0900 (4e67141fc)
@@ -2,4 +2,4 @@
 plugin_register ruby/eval
 #@on-error default
 
-ruby_eval 'Groonga::Converter.convert("2039/1/1 00:00:00", Time).to_s'
+ruby_eval 'Groonga::Converter.convert("2039/1/1 00:00:00", Time).to_s.gsub(/ [+a-zA-Z].*\\z/, "")'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190517/158ecf29/attachment.html>


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