diff options
author | Yury Melnichek <melnichek@gmail.com> | 2013-03-22 11:38:06 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:52:08 +0300 |
commit | dcb8c5b4e5bbb2eb78859396cc52304e78959bf4 (patch) | |
tree | eeb1efee8baa7c5f6507e99258946c610d310531 /api | |
parent | 8446dd06829050ba5d8a0ebc12bf34e134ba9875 (diff) |
[api] Add Unicode test.
Diffstat (limited to 'api')
-rw-r--r-- | api/tests/c/api-client-test.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/api/tests/c/api-client-test.c b/api/tests/c/api-client-test.c index 49c7960eef..81ddfe8501 100644 --- a/api/tests/c/api-client-test.c +++ b/api/tests/c/api-client-test.c @@ -423,5 +423,14 @@ FCT_BGN() } FCT_QTEST_END(); + FCT_QTEST_BGN(MapsWithMe_GenShortShowMapUrl_Unicode) + { + char buf[100] = {0}; + int res = MapsWithMe_GenShortShowMapUrl(0, 0, 19, "\xe2\x98\x84", buf, 100); + fct_chk_eq_str("ge0://8wAAAAAAAA/\xe2\x98\x84", buf); + fct_chk_eq_int(20, res); + } + FCT_QTEST_END(); + } FCT_END(); |