File: test_base64.rb

package info (click to toggle)
ruby-xmlrpc 0.3.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: ruby: 2,442; xml: 98; makefile: 5; sh: 4
file content (13 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true
require 'test/unit'
require 'xmlrpc/base64'

module TestXMLRPC
  class Test_Base64 < Test::Unit::TestCase
    def test_equals
      refute_equal(XMLRPC::Base64.new('foobar'), 'foobar')
      refute_equal(XMLRPC::Base64.new('foo'), XMLRPC::Base64.new('bar'))
      assert_equal(XMLRPC::Base64.new('foobar'), XMLRPC::Base64.new('foobar'))
    end
  end
end