Sha256: 32674462c3d59c3a83c51ffe94899e73b553c54748eb7e9930eadc8873967932
Contents?: true
Size: 544 Bytes
Versions: 3
Compression:
Stored size: 544 Bytes
Contents
# Copyright (C) 2018-2019 all contributors <dtas-all@nongnu.org> # License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt> # frozen_string_literal: true require './test/helper' require 'dtas' require 'yaml' class TestEncoding < Testcase def test_encoding data = <<EOD # <20180111114546.77906b35@cumparsita.ch> --- comments: ARTIST: !binary |- RW5yaXF1ZSBSb2Ryw61ndWV6 EOD hash = YAML.load(data) artist = DTAS.try_enc(hash['comments']['ARTIST'], Encoding::UTF_8) assert_equal 'Enrique RodrÃguez', artist end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dtas-0.17.0 | test/test_encoding.rb |
dtas-0.16.1 | test/test_encoding.rb |
dtas-0.16.0 | test/test_encoding.rb |