arrow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject arrow git commit: ARROW-925: [GLib] Fix GArrowBufferReader test
Date Mon, 01 May 2017 03:04:06 GMT
Repository: arrow
Updated Branches:
  refs/heads/master 6950e45db -> 8013cf318


ARROW-925: [GLib] Fix GArrowBufferReader test

GArrowReadable#read API was changed.

Author: Kouhei Sutou <kou@clear-code.com>

Closes #622 from kou/glib-fix-buffer-reader-test and squashes the following commits:

e41374b [Kouhei Sutou] [GLib] Fix GArrowBufferReader test


Project: http://git-wip-us.apache.org/repos/asf/arrow/repo
Commit: http://git-wip-us.apache.org/repos/asf/arrow/commit/8013cf31
Tree: http://git-wip-us.apache.org/repos/asf/arrow/tree/8013cf31
Diff: http://git-wip-us.apache.org/repos/asf/arrow/diff/8013cf31

Branch: refs/heads/master
Commit: 8013cf3189f3be4785f3f88ee3fbcaea94bd4960
Parents: 6950e45
Author: Kouhei Sutou <kou@clear-code.com>
Authored: Sun Apr 30 23:04:01 2017 -0400
Committer: Wes McKinney <wes.mckinney@twosigma.com>
Committed: Sun Apr 30 23:04:01 2017 -0400

----------------------------------------------------------------------
 c_glib/test/test-buffer-reader.rb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/arrow/blob/8013cf31/c_glib/test/test-buffer-reader.rb
----------------------------------------------------------------------
diff --git a/c_glib/test/test-buffer-reader.rb b/c_glib/test/test-buffer-reader.rb
index b3517b2..d05ed06 100644
--- a/c_glib/test/test-buffer-reader.rb
+++ b/c_glib/test/test-buffer-reader.rb
@@ -19,8 +19,7 @@ class TestBufferReader < Test::Unit::TestCase
   def test_read
     buffer = Arrow::Buffer.new("Hello World")
     buffer_reader = Arrow::BufferReader.new(buffer)
-    read_buffer = " " * 5
-    _success, n_read_bytes = buffer_reader.read(read_buffer)
-    assert_equal("Hello", read_buffer.byteslice(0, n_read_bytes))
+    read_buffer = buffer_reader.read(5)
+    assert_equal("Hello", read_buffer.data.to_s)
   end
 end


Mime
View raw message