mkvtoolnix/tests/test-551deprecated_cctld_codes.rb
Moritz Bunkus 1a7222fdbf chapters: update list of ccTLDs; handle deprecated codes
Updated the list of valid top level domain country codes. Deprecated
codes such as "gb" are mapped to their current representation ("uk")
during merging, extraction, in the GUI's chapter editor and in its
preferences.

Fixes #1731.
2016-07-03 15:09:21 +02:00

13 lines
360 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_551deprecated_cctld_codes
describe "mkvmerge, mkvextract / deprecated ccTLDs"
test_merge "data/subtitles/srt/ven.srt", :args => "--chapters data/chapters/uk-and-gb.xml"
test_merge "data/mkv/chapters-uk-and-gb.mks"
test "fix during extraction" do
extract "data/mkv/chapters-uk-and-gb.mks > #{tmp}", :mode => :chapters
hash_tmp
end