Skip to content

Commit

Permalink
test made case ignore: ec is sometimes known as EC
Browse files Browse the repository at this point in the history
  • Loading branch information
pgundlach committed Feb 19, 2007
1 parent f89ff63 commit c680c42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/tc_font.rb
Expand Up @@ -180,11 +180,11 @@ def test_pl
font.texenc=[@ecenc,@texnansienc] font.texenc=[@ecenc,@texnansienc]
font.mapenc=nil font.mapenc=nil
fontmaplines=font.maplines fontmaplines=font.maplines
mapline=["texnansi-savorg__-orig Savoy-Regular \"TeXnANSIEncoding ReEncodeFont\" <texnansi.enc <savorg__.pfb\n", mapline=["texnansi-savorg__-orig savoy-regular \"texnansiencoding reencodefont\" <texnansi.enc <savorg__.pfb\n",
"ec-savorg__-orig Savoy-Regular \"ECEncoding ReEncodeFont\" <EC.enc <savorg__.pfb\n"] "ec-savorg__-orig savoy-regular \"ecencoding reencodefont\" <ec.enc <savorg__.pfb\n"]
assert_equal(mapline.size,fontmaplines.size) assert_equal(mapline.size,fontmaplines.size)
fontmaplines.each { |fm| fontmaplines.each { |fm|
assert(mapline.member?(fm), "#{fm} is not recognized") assert(mapline.member?(fm.downcase), "#{fm} is not recognized")
} }
end end


Expand Down
2 changes: 1 addition & 1 deletion test/tc_kpathsea.rb
Expand Up @@ -12,7 +12,7 @@ def test_startup
end end
def test_file_search_open def test_file_search_open
kp=TeX::Kpathsea.new kp=TeX::Kpathsea.new
assert(kp.find_file("ec.enc","enc") =~ Regexp.new("fonts/enc/dvips/base/EC.enc")) assert(kp.find_file("ec.enc","enc").downcase =~ Regexp.new("fonts/enc/dvips/base/ec.enc"))


# open_file comes in two flavours: 1) rubyish with block and auto # open_file comes in two flavours: 1) rubyish with block and auto
# close on block end and 2) manual closing of file after use # close on block end and 2) manual closing of file after use
Expand Down

0 comments on commit c680c42

Please sign in to comment.