• R/O
  • SSH
  • HTTPS

pykf: Commit


Commit MetaInfo

Revision16 (tree)
Time2012-03-21 00:33:47
Authorishimoto

Log Message

fix test data

Change Summary

Incremental Difference

--- trunk/test/test_kf.py (revision 15)
+++ trunk/test/test_kf.py (revision 16)
@@ -1,3 +1,4 @@
1+# -*- coding:cp932 -*-
12 from __future__ import nested_scopes
23
34 import unittest
@@ -52,11 +53,11 @@
5253
5354
5455 def testBasic(self):
55- sjis = open("../readme.sjis").read()
56+ sjis = open("./readme.sjis").read()
5657 self.conv(sjis)
5758
5859 def testHankana(self):
59- sjis = open("hankana.txt").read()
60+ sjis = open("test/hankana.txt").read()
6061 self.conv(sjis)
6162
6263 def testNEC(self):
@@ -76,7 +77,7 @@
7677 assert toeuc(sjis) == euc
7778 assert toeuc(tojis(sjis)) == euc
7879 assert tosjis(euc) != sjis
79- assert unicode(tosjis(euc), "japanese.ms932") == unicode(sjis, "japanese.ms932")
80+ assert unicode(tosjis(euc), "cp932") == unicode(sjis, "cp932")
8081
8182 def testGaiji(self):
8283 sjis = "".join([chr(x)+chr(y) for x in range(0xf0, 0xfa) for y in range(0x40, 0x7e)])
Show on old repository browser