File: test-language.rb

package info (click to toggle)
ruby-gnome 4.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 26,648 kB
  • sloc: ruby: 67,701; ansic: 67,431; xml: 350; sh: 201; cpp: 45; makefile: 42
file content (13 lines) | stat: -rw-r--r-- 352 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
class TestLanguage < Test::Unit::TestCase
  include PangoTestUtils

  def test_default
    assert_match(/\A(?:[a-z]{2}-[a-z]{2}|(?i:c))\z/,
                 Pango::Language.default.to_s)
  end

  def test_sample_string
    assert_equal("The quick brown fox jumps over the lazy dog.",
                 Pango::Language.new("en").sample_string)
  end
end