File: encoding_test.rb

package info (click to toggle)
ruby-redis 4.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,168 kB
  • sloc: ruby: 12,820; makefile: 107; sh: 24
file content (15 lines) | stat: -rw-r--r-- 315 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require_relative "helper"

class TestEncoding < Minitest::Test
  include Helper::Client

  def test_returns_properly_encoded_strings
    with_external_encoding("UTF-8") do
      r.set "foo", "שלום"

      assert_equal "Shalom שלום", "Shalom " + r.get("foo")
    end
  end
end