Sha256: 32c4dcd16e74ea2fe51bc0b3cad6125689f869855a691400af90c8e078ef1b9a

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

# frozen_string_literal: true

require_relative '../../test_helper'

class TestFakerChar < Test::Unit::TestCase
  def setup
    @tester = Faker::Char
  end

  def test_fix_umlauts
    assert @tester.fix_umlauts('ä') == 'ae'
    assert @tester.fix_umlauts('ö') == 'oe'
    assert @tester.fix_umlauts('ü') == 'ue'
    assert @tester.fix_umlauts('ß') == 'ss'
    # tests false positive
    assert @tester.fix_umlauts('ss') == 'ss'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/bundler/gems/faker-e1bd4a5a5777/test/faker/default/test_faker_char.rb