ddnet/src/test
bors[bot] e3cfb23f28
Merge #2742 #2745
2742: Add str_utf8_copy that trim broken utf8 sequence at the end. r=heinrich5991 a=TsFreddie

Currently this replaces `str_copy` text input and clipboard paste in chat. Many places may need the same treatments, like steam names.

![image](https://user-images.githubusercontent.com/3797859/92263741-08b8e080-eed5-11ea-84a5-b7f070ded260.png)

Test string:
abcd今天是个好日子心想的事儿都能成今天是个好日子打开了家门咱迎春风今天是个好日子心想的事儿都能成今天是个好日子打开了家门咱迎春风今天是个好日子心想的事儿都能成今天是个好日子打

2745: Update mapres by mind r=heinrich5991 a=def-

Adapted from 0.7 for new renderer. Not sure if this makes sense :D

Co-authored-by: TsFreddie <tsfreddiewang@gmail.com>
Co-authored-by: def <dennis@felsin9.de>
2020-09-06 23:12:04 +00:00
..
aio.cpp Add manual locking to ASYNCIO for transacted writes 2017-11-27 01:04:55 +01:00
bezier.cpp Add some tests for the bezier stuff 2020-07-02 11:07:30 +02:00
color.cpp Remove some unused includes 2019-12-14 10:20:42 +01:00
csv.cpp Add a simple CSV writer for Python's "excel" csv dialect 2020-06-23 09:11:59 +02:00
datafile.cpp Add support for extra map items in datafiles 2018-10-08 23:05:56 +02:00
fs.cpp Add CTestInfo class, add test for create-close-remove process 2017-10-23 00:13:53 +02:00
git_revision.cpp Use EXPECT_* rather than ASSERT_* in tests 2019-03-12 02:06:54 +01:00
hash.cpp Use OpenSSL md5 if it is available 2019-04-06 02:56:29 +02:00
jobs.cpp Add a couple of tests for CJobPool 2017-11-24 10:33:42 +01:00
json.cpp Remove /modhelp (fixes #1401) 2018-12-12 10:05:44 +01:00
mapbugs.cpp Also use sha256 for the mapbugs stuff 2018-08-19 12:12:11 +02:00
name_ban.cpp Use EXPECT_* rather than ASSERT_* in tests 2019-03-12 02:06:54 +01:00
packer.cpp Only send valid UTF-8 over the network 2020-09-03 18:50:23 +02:00
prng.cpp Use the PCG-XSH-RR PRNG instead 2020-05-26 10:59:49 +02:00
str.cpp Merge #2742 #2745 2020-09-06 23:12:04 +00:00
strip_path_and_extension.cpp Add testing infrastructure for teehistorian 2017-09-28 02:03:30 +02:00
teehistorian.cpp Add save/load teehistorian test 2020-06-26 00:01:12 +02:00
test.cpp Call net_init in tests 2017-11-24 10:51:46 +01:00
test.h Add CTestInfo class, add test for create-close-remove process 2017-10-23 00:13:53 +02:00
thread.cpp More error checking in system.c (fixes #1317) 2019-03-19 23:16:29 +01:00
unix.cpp Add very basic test for Unix sockets 2017-12-20 16:56:44 +01:00