Sha256: 0fecc00e7352fabeabf82102483d2b0117f972621213b97f354234797226de2f
Contents?: true
Size: 430 Bytes
Versions: 4
Compression:
Stored size: 430 Bytes
Contents
require 'spec_helper' describe Net::NTLM::EncodeUtil do context '#encode_utf16le' do it 'should convert an ASCII string to UTF' do expect(Net::NTLM::EncodeUtil.encode_utf16le('Test')).to eq("T\x00e\x00s\x00t\x00") end end context '#decode_utf16le' do it 'should convert a UTF string to ASCII' do expect(Net::NTLM::EncodeUtil.decode_utf16le("T\x00e\x00s\x00t\x00")).to eq('Test') end end end
Version data entries
4 entries across 4 versions & 1 rubygems