Sha256: 91413b1be854cd1476fea5b9d46e514c539377c674e937b9379810d41e394a69

Contents?: true

Size: 608 Bytes

Versions: 1

Compression:

Stored size: 608 Bytes

Contents

require File.join(File.expand_path(File.dirname(__FILE__)), 'testutilities')
require File.expand_path(File.join(File.dirname(__FILE__), "../lib/amp"))

class TestBase85 < AmpTestCase
  def test_encode
    assert_equal("Xk~0{Zy<DNWpZUKAZ>XdZeeX@AZc?TZE0g@VP$L~AZTxQAYpQ4AbD?fAarkJVR=6",
               Amp::Encoding::Base85.encode("hello there, my name is michael! how are you today?"))
  end
  
  def test_decode
    assert_equal("hello there, my name is michael! how are you today?",
               Amp::Encoding::Base85.decode("Xk~0{Zy<DNWpZUKAZ>XdZeeX@AZc?TZE0g@VP$L~AZTxQAYpQ4AbD?fAarkJVR=6"))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amp-0.5.3 test/test_base85.rb