@@ -213,6 +213,7 @@ var features = map[string][]string{
213213 "_examples/maps" : []string {"py2-cffi" , "py3-cffi" , "pypy2-cffi" , "pypy3-cffi" },
214214 "_examples/gostrings" : []string {"py2" , "py2-cffi" , "py3-cffi" , "pypy2-cffi" , "pypy3-cffi" },
215215 "_examples/rename" : []string {"py2" , "py2-cffi" , "py3-cffi" , "pypy2-cffi" , "pypy3-cffi" },
216+ "_examples/unicode" : []string {"py2" , "py2-cffi" , "py3-cffi" , "pypy2-cffi" , "pypy3-cffi" },
216217}
217218
218219func TestHi (t * testing.T ) {
@@ -881,6 +882,19 @@ sliceptr.StrVector{"1", "2", "3", "4"}
881882 })
882883}
883884
885+ func TestUnicode (t * testing.T ) {
886+ t .Parallel ()
887+ path := "_examples/unicode"
888+ testPkg (t , pkg {
889+ path : path ,
890+ lang : []string {"py2" , "py2-cffi" , "py3-cffi" , "pypy2-cffi" , "pypy3-cffi" },
891+ want : []byte (`encoding.HandleString(bytestr) -> Python byte string
892+ encoding.HandleString(unicodestr) -> Python Unicode string 🐱
893+ encoding.GetString() -> Go Unicode string 🐱
894+ ` ),
895+ })
896+ }
897+
884898// Generate / verify SUPPORT_MATRIX.md from features map.
885899func TestCheckSupportMatrix (t * testing.T ) {
886900 var buf bytes.Buffer
0 commit comments