From f6c79438ed195bb706903d104cce850bfbfbac41 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 18 Jan 2011 15:52:25 -0800 Subject: add tests for empty writes, too There could be some platforms that dislike it... --- test/lib_read_write.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/lib_read_write.rb b/test/lib_read_write.rb index 20bdd59..b3c6f17 100644 --- a/test/lib_read_write.rb +++ b/test/lib_read_write.rb @@ -15,6 +15,14 @@ module LibReadWriteTest end end + def test_write_empty + assert_nil @wr.kgio_write("") + end + + def test_trywrite_empty + assert_nil @wr.kgio_trywrite("") + end + def test_read_zero assert_equal "", @rd.kgio_read(0) buf = "foo" -- cgit v1.2.3-24-ge0c7