Commits

Anonymous committed 0fc90e1

sanitize test data

Comments (0)

Files changed (4)

test/luwak_get_stream_tests.erl

 simple_get_stream_test() ->
   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{block_size,3},{tree_order,3}], dict:new()),
-      {ok, _Written, File1} = luwak_io:put_range(Riak, File, 0, <<"wontyoupleasetouchmymonkey">>),
+      {ok, _Written, File1} = luwak_io:put_range(Riak, File, 0, <<"abcdefghijklmnopqrstuvwxyz">>),
       GetStream = luwak_get_stream:start(Riak, File1, 0, 26),
       timer:sleep(100),
-      ?assertEqual({<<"won">>, 0}, luwak_get_stream:recv(GetStream, 1000)),
-      ?assertEqual({<<"tyo">>, 3}, luwak_get_stream:recv(GetStream, 1000)),
-      ?assertEqual({<<"upl">>, 6}, luwak_get_stream:recv(GetStream, 1000)),
-      ?assertEqual({<<"eas">>, 9}, luwak_get_stream:recv(GetStream, 1000)),
-      ?assertEqual({<<"eto">>, 12}, luwak_get_stream:recv(GetStream, 1000)),
-      ?assertEqual({<<"uch">>, 15}, luwak_get_stream:recv(GetStream, 1000)),
-      ?assertEqual({<<"mym">>, 18}, luwak_get_stream:recv(GetStream, 1000)),
-      ?assertEqual({<<"onk">>, 21}, luwak_get_stream:recv(GetStream, 1000)),
-      ?assertEqual({<<"ey">>, 24}, luwak_get_stream:recv(GetStream, 1000)),
+      ?assertEqual({<<"abc">>, 0}, luwak_get_stream:recv(GetStream, 1000)),
+      ?assertEqual({<<"def">>, 3}, luwak_get_stream:recv(GetStream, 1000)),
+      ?assertEqual({<<"ghi">>, 6}, luwak_get_stream:recv(GetStream, 1000)),
+      ?assertEqual({<<"jkl">>, 9}, luwak_get_stream:recv(GetStream, 1000)),
+      ?assertEqual({<<"mno">>, 12}, luwak_get_stream:recv(GetStream, 1000)),
+      ?assertEqual({<<"pqr">>, 15}, luwak_get_stream:recv(GetStream, 1000)),
+      ?assertEqual({<<"stu">>, 18}, luwak_get_stream:recv(GetStream, 1000)),
+      ?assertEqual({<<"vwx">>, 21}, luwak_get_stream:recv(GetStream, 1000)),
+      ?assertEqual({<<"yz">>, 24}, luwak_get_stream:recv(GetStream, 1000)),
       ?assertEqual(eos, luwak_get_stream:recv(GetStream, 1000))
     end).
     
   Test = fun() ->
     test_helper:riak_test(fun(Riak) ->
         {ok, File} = luwak_file:create(Riak, <<"file1">>, [{block_size,2},{tree_order,2}], dict:new()),
-        {ok, _Written, File1} = luwak_io:put_range(Riak, File, 0, <<"wontyoupleasetouchmymonkey">>),
+        {ok, _Written, File1} = luwak_io:put_range(Riak, File, 0, <<"abcdefghijklmnopqrstuvwxyz">>),
         GetStream = luwak_get_stream:start(Riak, File1, 3, 10),
-        ?assertEqual({<<"t">>, 3}, luwak_get_stream:recv(GetStream, 1000)),
-        ?assertEqual({<<"yo">>, 4}, luwak_get_stream:recv(GetStream, 1000)),
-        ?assertEqual({<<"up">>, 6}, luwak_get_stream:recv(GetStream, 1000)),
-        ?assertEqual({<<"le">>, 8}, luwak_get_stream:recv(GetStream, 1000)),
-        ?assertEqual({<<"as">>, 10}, luwak_get_stream:recv(GetStream, 1000)),
-        ?assertEqual({<<"e">>, 12}, luwak_get_stream:recv(GetStream, 1000)),
+        ?assertEqual({<<"d">>, 3}, luwak_get_stream:recv(GetStream, 1000)),
+        ?assertEqual({<<"ef">>, 4}, luwak_get_stream:recv(GetStream, 1000)),
+        ?assertEqual({<<"gh">>, 6}, luwak_get_stream:recv(GetStream, 1000)),
+        ?assertEqual({<<"ij">>, 8}, luwak_get_stream:recv(GetStream, 1000)),
+        ?assertEqual({<<"kl">>, 10}, luwak_get_stream:recv(GetStream, 1000)),
+        ?assertEqual({<<"m">>, 12}, luwak_get_stream:recv(GetStream, 1000)),
         ?assertEqual(eos, luwak_get_stream:recv(GetStream, 1000))
       end)
     end,
 read_beyond_file_end_test() ->
   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{block_size,2},{tree_order,2}], dict:new()),
-      {ok, _Written, File1} = luwak_io:put_range(Riak, File, 0, <<"wontyoupleasetouchmymonkey">>),
+      {ok, _Written, File1} = luwak_io:put_range(Riak, File, 0, <<"abscdefghijklmnopqrstuvwxyz">>),
       GetStream = luwak_get_stream:start(Riak, File1, 30, 10),
       ?assertEqual(eos, luwak_get_stream:recv(GetStream, 1000))
     end).

test/luwak_io_tests.erl

 simple_put_range_test() ->
   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{block_size,5}], dict:new()),
-      {ok, Written, _} = luwak_io:put_range(Riak, File, 0, <<"fuckyourcouch">>),
-      Hash1 = <<"4622b193a65e6f2a7873b6bef7e3b0cf18867f687e48f40fd9eabf840d5f0ebbd65bfff586e5c38ba50e473516e8f270b6687a1f271586baf648a38aa489dd91">>,
-      Hash2 = <<"08d5f211d13a9fb1e9b6902771b80459fedbb9e138b96d7a6dc3b92ad87997d24b65cc1a8594cc14b226cd511acf03eb3f4b24c7b67d270665d5bf5cb43f8fa6">>,
-      Hash3 = <<"6f01ab53f4498ccfa5de27d9fa1fd1aa3c088958588db410bc35055012e6ed2795c39d8abe454402062436434b15acc78baddb016c370cd445579401562ea316">>,
+      {ok, Written, _} = luwak_io:put_range(Riak, File, 0, <<"abcdefghijklm">>),
+      Hash1 = <<"751fa004096ddee0b639b37d02fdb2dc68bd4eb7749bb2c17e5edc624d8a9eef4815e4cc1132cc14dfc493d1f46fc1b072653c0bcb3533e1da9676e96a4aeb30">>,
+      Hash2 = <<"86a17f1a92887662099480d4bdd222d7e3372b347a1df276a183e3df5407d68ab44225967c0047f8e1a7c8d854198ac949a3d8f960385c7df4655a9143ad7fa7">>,
+      Hash3 = <<"a472d1328b53ad058a383902e0a4170ad6b202f78fb1b25a5a41c8bb9f4a552f20ffebed176620f84990d2d60c9ecd85513af915e8f25bcb35e77c1b46efed67">>,
       {ok, Block1} = Riak:get(<<"luwak_node">>, Hash1, 2),
       {ok, Block2} = Riak:get(<<"luwak_node">>, Hash2, 2),
       {ok, Block3} = Riak:get(<<"luwak_node">>, Hash3, 2),
-      ?assertEqual(<<"fucky">>, luwak_block:data(Block1)),
-      ?assertEqual(<<"ourco">>, luwak_block:data(Block2)),
-      ?assertEqual(<<"uch">>, luwak_block:data(Block3)),
+      ?assertEqual(<<"abcde">>, luwak_block:data(Block1)),
+      ?assertEqual(<<"fghij">>, luwak_block:data(Block2)),
+      ?assertEqual(<<"klm">>, luwak_block:data(Block3)),
       ?assertEqual([{Hash1,5},{Hash2,5},{Hash3,3}], Written)
     end).
 
 simple_get_range_test() ->
   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{block_size,2},{tree_order,3}], dict:new()),
-      {ok, _Written, File1} = luwak_io:put_range(Riak, File, 0, <<"fuckyourcouch">>),
+      {ok, _Written, File1} = luwak_io:put_range(Riak, File, 0, <<"abcdefghijklm">>),
       Blocks = luwak_io:get_range(Riak, File1, 3, 5),
       ok = file:write_file("tree4.dot", luwak_tree:visualize_tree(Riak, luwak_file:get_property(File1, root))),
-      ?assertEqual(<<"kyour">>, iolist_to_binary(Blocks))
+      ?assertEqual(<<"defgh">>, iolist_to_binary(Blocks))
     end).
     
 read_beyond_eof_test() ->
   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{block_size,2},{tree_order,3}], dict:new()),
-      {ok, _Written, File1} = luwak_io:put_range(Riak, File, 0, <<"fuckyourcouch">>),
+      {ok, _Written, File1} = luwak_io:put_range(Riak, File, 0, <<"abcdefghijklm">>),
       Blocks = luwak_io:get_range(Riak, File1, 14, 5),
       ?assertEqual([], Blocks)
     end).
 multilevel_get_range_test() ->
   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{block_size,3},{tree_order,3}], dict:new()),
-      {ok, _Written, File1} = luwak_io:put_range(Riak, File, 0, <<"wontyoupleasetouchmymonkey">>),
+      {ok, _Written, File1} = luwak_io:put_range(Riak, File, 0, <<"abcdefghijklmnopqrstuvwxyz">>),
       Blocks = luwak_io:get_range(Riak, File1, 4, 9),
       ok = file:write_file("tree5.dot", luwak_tree:visualize_tree(Riak, luwak_file:get_property(File1, root))),
-      ?assertEqual(<<"youplease">>, iolist_to_binary(Blocks))
+      ?assertEqual(<<"efghijklm">>, iolist_to_binary(Blocks))
     end).
 
 %% @doc Makes a simple file, named Name, with BlockCount blocks, each
 eof_get_range_test() ->
   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{block_size,3},{tree_order,3}], dict:new()),
-      {ok, _Written, File1} = luwak_io:put_range(Riak, File, 0, <<"wontyoupleasetouchmymonkey">>),
+      {ok, _Written, File1} = luwak_io:put_range(Riak, File, 0, <<"abcdefghijklmnopqrstuvwxyz">>),
       ok = file:write_file("tree6.dot", luwak_tree:visualize_tree(Riak, luwak_file:get_property(File1, root))),
       Blocks = luwak_io:get_range(Riak, File1, 20, 20),
-      ?assertEqual(<<"monkey">>, iolist_to_binary(Blocks))
+      ?assertEqual(<<"uvwxyz">>, iolist_to_binary(Blocks))
     end).
 
 truncate_test() ->
   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{block_size,3},{tree_order,3}], dict:new()),
-      {ok, _Written, File1} = luwak_io:put_range(Riak, File, 0, <<"wontyoupleasetouchmymonkey">>),
+      {ok, _Written, File1} = luwak_io:put_range(Riak, File, 0, <<"abcdefghijklmnopqrstuvwxyz">>),
       {ok, File2} = luwak_io:truncate(Riak, File1, 7),
       ok = file:write_file("tree7.dot", luwak_tree:visualize_tree(Riak, luwak_file:get_property(File2, root))),
       Blocks = luwak_io:get_range(Riak, File2, 0, 7),
-      ?assertEqual(<<"wontyou">>, iolist_to_binary(Blocks))
+      ?assertEqual(<<"abcdefg">>, iolist_to_binary(Blocks))
     end).
 
 sub_block_partial_write_test() ->

test/luwak_put_stream_tests.erl

   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{block_size,3},{tree_order,3}], dict:new()),
       PutStream = luwak_put_stream:start(Riak, File, 0, 1000),
-      Input = [<<"hey">>, <<"why">>, <<"are">>, <<"you">>, <<"drp">>],
+      Input = [<<"abc">>, <<"def">>, <<"ghi">>, <<"jkl">>, <<"mno">>],
       lists:foreach(fun(B) -> luwak_put_stream:send(PutStream, B) end, Input),
       luwak_put_stream:close(PutStream),
       {ok, File2} = luwak_put_stream:status(PutStream, 1000),
       Blocks = luwak_io:get_range(Riak, File2, 0, 15),
-      ?assertEqual(<<"heywhyareyoudrp">>, iolist_to_binary(Blocks))
+      ?assertEqual(<<"abcdefghijklmno">>, iolist_to_binary(Blocks))
     end).
 
 unaligned_put_stream_test() ->
   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{block_size,3},{tree_order,3}], dict:new()),
-      {ok, _, File1} = luwak_io:put_range(Riak, File, 0, <<"heywhyareyoudrp">>),
+      {ok, _, File1} = luwak_io:put_range(Riak, File, 0, <<"abcdefghijklmno">>),
       ok = file:write_file("tree8.dot", luwak_tree:visualize_tree(Riak, luwak_file:get_property(File1, root))),
       PutStream = luwak_put_stream:start(Riak, File1, 4, 1000),
-      Input = [<<"her">>, <<"pdr">>, <<"p">>],
+      Input = [<<"zyx">>, <<"wvu">>, <<"t">>],
       lists:foreach(fun(B) -> luwak_put_stream:send(PutStream, B) end, Input),
       luwak_put_stream:close(PutStream),
       {ok, File2} = luwak_put_stream:status(PutStream, 1000),
       ok = file:write_file("tree9.dot", luwak_tree:visualize_tree(Riak, luwak_file:get_property(File2, root))),
       Blocks = luwak_io:get_range(Riak, File2, 0, 15),
       timer:sleep(100),
-      ?assertEqual(<<"heywherpdrpudrp">>, iolist_to_binary(Blocks))
+      ?assertEqual(<<"abcdzyxwvutlmno">>, iolist_to_binary(Blocks))
     end).

test/luwak_tree_tests.erl

 create_simple_tree_test() ->
   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{tree_order,4},{block_size,5}], dict:new()),
-      {ok, _Written, File2} = luwak_io:put_range(Riak, File, 0, <<"fuckyourcouch">>),
-      BHash1 = <<"4622b193a65e6f2a7873b6bef7e3b0cf18867f687e48f40fd9eabf840d5f0ebbd65bfff586e5c38ba50e473516e8f270b6687a1f271586baf648a38aa489dd91">>,
-      BHash2 = <<"08d5f211d13a9fb1e9b6902771b80459fedbb9e138b96d7a6dc3b92ad87997d24b65cc1a8594cc14b226cd511acf03eb3f4b24c7b67d270665d5bf5cb43f8fa6">>,
-      BHash3 = <<"6f01ab53f4498ccfa5de27d9fa1fd1aa3c088958588db410bc35055012e6ed2795c39d8abe454402062436434b15acc78baddb016c370cd445579401562ea316">>,
-      RootHash = <<"08b8b5439aecd6ab572f44fafd4cef1d1ae7adb09382046f02ad192437e7d7ff96f7fcd964c133c2039089eb03c7e219bbd272e60e3f2c6c7d1d12f8f01a5f7f">>,
+      {ok, _Written, File2} = luwak_io:put_range(Riak, File, 0, <<"abcdefghijklm">>),
+      BHash1 = <<"751fa004096ddee0b639b37d02fdb2dc68bd4eb7749bb2c17e5edc624d8a9eef4815e4cc1132cc14dfc493d1f46fc1b072653c0bcb3533e1da9676e96a4aeb30">>,
+      BHash2 = <<"86a17f1a92887662099480d4bdd222d7e3372b347a1df276a183e3df5407d68ab44225967c0047f8e1a7c8d854198ac949a3d8f960385c7df4655a9143ad7fa7">>,
+      BHash3 = <<"a472d1328b53ad058a383902e0a4170ad6b202f78fb1b25a5a41c8bb9f4a552f20ffebed176620f84990d2d60c9ecd85513af915e8f25bcb35e77c1b46efed67">>,
+      RootHash = <<"5676ff048bedcf789df26fec4d118241089f71929579f023cbe7a26c620ad242106f91ee7b9f4d5f3c2c305bcbc5ba9c95b2e5d24706c8ab76305a32866e7de8">>,
       Root = luwak_file:get_property(File2, root),
       ?assertEqual(RootHash, Root),
       {ok, RootNode} = luwak_tree:get(Riak, Root),
 create_and_overwrite_middle_tree_test() ->
   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{tree_order,4},{block_size,5}], dict:new()),
-      {ok, _Written1, File2} = luwak_io:put_range(Riak, File, 0, <<"fuckyourcouch">>),
-      _BHash1 = <<"4622b193a65e6f2a7873b6bef7e3b0cf18867f687e48f40fd9eabf840d5f0ebbd65bfff586e5c38ba50e473516e8f270b6687a1f271586baf648a38aa489dd91">>,
-      _BHash2 = <<"08d5f211d13a9fb1e9b6902771b80459fedbb9e138b96d7a6dc3b92ad87997d24b65cc1a8594cc14b226cd511acf03eb3f4b24c7b67d270665d5bf5cb43f8fa6">>,
-      BHash3 = <<"6f01ab53f4498ccfa5de27d9fa1fd1aa3c088958588db410bc35055012e6ed2795c39d8abe454402062436434b15acc78baddb016c370cd445579401562ea316">>,
-      {ok, _Written2, File3} = luwak_io:put_range(Riak, File2, 1, <<"ballstoyou">>),
-      BHash1_2 = <<"3717fd47d84a96cb99791d1c24d652a712e2841f2a3d0a282d22f9a477453bb7c394a1989115acf882fb867483cc2ba429f2280c1014cd82cc95aa8f1e8a1e4c">>,
-      BHash2_2 = <<"16c46831340abea94de6a5369466c0e8f710c15e2eec684067b89b27ca48856d7833933d28a1213cff5887bc57e5fdbb1d5e19bff7c6bb1f412a5db74612314b">>,
-      RootHash2 = <<"53bfd159bbc194ff331dbdcd19f9ab98480b554f88708a342ac2eb1f94229d0444a47a9d5fa5d8b14d1a6264d3df0dde3225f4c21536ed5874fbb0adfabc28eb">>,
+      {ok, _Written1, File2} = luwak_io:put_range(Riak, File, 0, <<"abcdefghijklm">>),
+      BHash3 = <<"9b0b42ba73433d128142716ec92c0b6193fb5646eb4094aacd0246ac25c109ace790d6c97d08df257407f42a7c1ba8163fc209117a229c0236bc0994fae353a6">>,
+      {ok, _Written2, File3} = luwak_io:put_range(Riak, File2, 1, <<"zyxwvutsrq">>),
+      BHash1_2 = <<"dc9cb02788c70dda88e58b35c301d9824c07466dbc86298145327536524f3baa5e3d9cdbb40642e06c8ed9ce7f097923f39a0d3f38bb24729a0cbe9a4c8f2a01">>,
+      BHash2_2 = <<"6f92ce05db424b6ea3b9bb9ad51d40b311490d5b3a15b8dbe2621e38796885369df197177bea421556dd2ef556301c240fcde02e41352ac9807a530af5a0ea46">>,
+      RootHash2 = <<"14ec341979962a61404a79552754b12fc9faf9e747e1f13d2792ef5d9609b0a406d5fc25952da64eb61a6d99435c27cce4cf85a3d8bbea348bc7215bd8071eee">>,
       Root = luwak_file:get_property(File3, root),
       ?assertEqual(RootHash2, Root),
       {ok, RootNode} = luwak_tree:get(Riak, Root),
 create_multilevel_tree_test() ->
   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{tree_order,5},{block_size,1}], dict:new()),
-      {ok, _Written1, File2} = luwak_io:put_range(Riak, File, 0, <<"fuckyourcouch">>),
-      Blocks = [ {skerl:hexhash(512, list_to_binary([C])), 1} || C <- binary_to_list(<<"fuckyourcouch">>) ],
+      {ok, _Written1, File2} = luwak_io:put_range(Riak, File, 0, <<"abcdefghijklm">>),
+      Blocks = [ {skerl:hexhash(512, list_to_binary([C])), 1} || C <- binary_to_list(<<"abcdefghijklm">>) ],
       {FirstNodeChildren, Tail1} = lists:split(5, Blocks),
       {SecondNodeChildren, ThirdNodeChildren} = lists:split(5, Tail1),
       Node1 = skerl:hexhash(512, term_to_binary(FirstNodeChildren)),
 create_and_overwrite_multilevel_tree_test() ->
   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{tree_order,5},{block_size,1}], dict:new()),
-      {ok, _Written1, File2} = luwak_io:put_range(Riak, File, 0, <<"fuckyourcouch">>),
+      {ok, _Written1, File2} = luwak_io:put_range(Riak, File, 0, <<"abcdefghijklm">>),
       % ok = file:write_file("tree1.dot", luwak_tree:visualize_tree(Riak, luwak_file:get_property(File2, root))),
-      {ok, _Written2, File3} = luwak_io:put_range(Riak, File2, 1, <<"ballstoyou">>),
-      Blocks = [ {skerl:hexhash(512, list_to_binary([C])), 1} || C <- binary_to_list(<<"fballstoyouch">>) ],
+      {ok, _Written2, File3} = luwak_io:put_range(Riak, File2, 1, <<"zyxwvutsrq">>),
+      Blocks = [ {skerl:hexhash(512, list_to_binary([C])), 1} || C <- binary_to_list(<<"azyxwvutsrqlm">>) ],
       {FirstNodeChildren, Tail1} = lists:split(5, Blocks),
       {SecondNodeChildren, ThirdNodeChildren} = lists:split(5, Tail1),
       Node1 = skerl:hexhash(512, term_to_binary(FirstNodeChildren)),
 create_and_append_test() ->
   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{tree_order,3},{block_size,2}], dict:new()),
-      {ok, _Written1, File2} = luwak_io:put_range(Riak, File, 0, <<"wontyouplease">>),
-      {ok, _Written2, File3} = luwak_io:put_range(Riak, File2, 13, <<"touchmymonkey">>),
-      _Blocks = [ {skerl:hexhash(512, X), 2} || <<X:2/binary>> <= <<"wontyoupleasetouchmymonkey">> ],
+      {ok, _Written1, File2} = luwak_io:put_range(Riak, File, 0, <<"abcdefghijklm">>),
+      {ok, _Written2, File3} = luwak_io:put_range(Riak, File2, 13, <<"nopqrstuvwxyz">>),
+      _Blocks = [ {skerl:hexhash(512, X), 2} || <<X:2/binary>> <= <<"abcdefghijklmnopqrstuvwxyz">> ],
       ok = file:write_file("tree3.dot", luwak_tree:visualize_tree(Riak, luwak_file:get_property(File3, root))),
-      ?assertEqual(<<"wontyoupleasetouchmymonkey">>, iolist_to_binary(luwak_io:get_range(Riak, File3, 0, 26)))      
+      ?assertEqual(<<"abcdefghijklmnopqrstuvwxyz">>, iolist_to_binary(luwak_io:get_range(Riak, File3, 0, 26)))
     end).
 
 append_beyond_pointer_test() ->
   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{tree_order,3},{block_size,2}], dict:new()),
-      {ok, _Written1, File2} = luwak_io:put_range(Riak, File, 0, <<"wontyouplease">>),
-      {ok, _Written2, File3} = luwak_io:put_range(Riak, File2, 15, <<"touchmymonkey">>),
-      ?assertEqual(<<"wontyoupleasetouchmymonkey">>, iolist_to_binary(luwak_io:get_range(Riak, File3, 0, 26)))
+      {ok, _Written1, File2} = luwak_io:put_range(Riak, File, 0, <<"abcdefghijklm">>),
+      {ok, _Written2, File3} = luwak_io:put_range(Riak, File2, 15, <<"nopqrstuvwxyz">>),
+      ?assertEqual(<<"abcdefghijklmnopqrstuvwxyz">>, iolist_to_binary(luwak_io:get_range(Riak, File3, 0, 26)))
     end).
 
 block_at_test() ->
   test_helper:riak_test(fun(Riak) ->
       {ok, File} = luwak_file:create(Riak, <<"file1">>, [{tree_order,3},{block_size,3}], dict:new()),
-      {ok, _Written1, File1} = luwak_io:put_range(Riak, File, 0, <<"heywhyareyoudrp">>),
+      {ok, _Written1, File1} = luwak_io:put_range(Riak, File, 0, <<"abcdefghijklmno">>),
       {ok, Block} = luwak_tree:block_at(Riak, File1, 9),
       Data = luwak_block:data(Block),
       timer:sleep(1000),
-      ?assertEqual(<<"you">>, Data)
+      ?assertEqual(<<"jkl">>, Data)
     end).