 
   T.equal(stock, encoded_data, "bad output found: base=#{base} len=#{len}")
 
-test_bx_streaming_correctness = (T, base, len, stock_func) ->
+test_bx_streaming_correctness = (T, base, len) ->
   encoding = encoding_for_base(base)
   encoder = new stream.StreamEncoder(encoding)
   block_encoder = new stream.StreamEncoder(encoding)

  for i in [1...loop_limit] by loop_skip
    test_bx_output(T, 64, i, b64stock.encode)
  cb()

  block_encoder.write(data)
  encoded_data = encoder.read()
  block_encoded_data = block_encoder.read()
  fdiff = first_different_byte(encoded_data, block_encoded_data)

  T.equal(encoded_data, block_encoded_data, "max was right: base=#{base} len=#{len} fdiff=#{fdiff}")

encoding_for_base = (base) ->
  switch base
