Sha256: e68343ab851bc29071617945944e9fc2e22c92e689f1893b1e15f4b15f30d77f
Contents?: true
Size: 446 Bytes
Versions: 9
Compression:
Stored size: 446 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
9 entries across 9 versions & 3 rubygems