Sha256: c4cd829a2719fe5a09b1343f19622b290f381ad8ecbbec3bacfe1d73c03fba13

Contents?: true

Size: 647 Bytes

Versions: 3

Compression:

Stored size: 647 Bytes

Contents

# encoding: utf-8

require 'test_helper'

describe String do
  it 'preslovnjava u latinicu' do
    assert_equal "NJEGOŠ", "ЊЕГОШ".na_latinici
    assert_equal "Šaban Šaulić", "Шабан Шаулић".na_latinici
    assert_equal "elektrodistribucija", "електродистрибуција".na_latinici
    assert_equal "Đurđevak", "Ђурђевак".na_latinici
    assert_equal "Latinica", "Latinica".na_latinici
    assert_equal '[]2#}(,.);2@$"', '[]2#}(,.);2@$"'.na_latinici
  end

  it 'preslovanjava u ošišanu latinicu' do
    assert_equal("Zeleznica Srbije", "Железница Србије".na_latinici(:ascii))
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
srbovanje-1.0.2 test/string_ext_test.rb
srbovanje-1.0.1 test/string_ext_test.rb
srbovanje-1.0.0 test/string_ext_test.rb