<feed xmlns='http://www.w3.org/2005/Atom'>
<title>minetest.git/src/unittest, branch 0.4.13</title>
<subtitle>lizzy's patches for luanti
</subtitle>
<id>https://git.vlhl.dev/lizzy/luanti/minetest.git/atom?h=0.4.13</id>
<link rel='self' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/atom?h=0.4.13'/>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/'/>
<updated>2015-08-16T12:29:33+00:00</updated>
<entry>
<title>Remove unused functions.</title>
<updated>2015-08-16T12:29:33+00:00</updated>
<author>
<name>onkrot</name>
<email>vob999@bk.ru</email>
</author>
<published>2015-08-15T19:25:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=5556ba168fb8bb3c234311564de36c4b130c8ab1'/>
<id>urn:sha1:5556ba168fb8bb3c234311564de36c4b130c8ab1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix Lua PcgRandom</title>
<updated>2015-08-12T09:36:22+00:00</updated>
<author>
<name>est31</name>
<email>MTest31@outlook.com</email>
</author>
<published>2015-08-11T17:07:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=738fbc66d096575bb9a1694056ce2d627a70c03d'/>
<id>urn:sha1:738fbc66d096575bb9a1694056ce2d627a70c03d</id>
<content type='text'>
Before, this lua code led to a crash:

local pcg = PcgRandom(42)
local value = pcg:next()

This was because if you called s32 PcgRandom::range(min, max) with the
minimum and maximum possible values for s32 integers (which the lua
binding code did), u32 PcgRandom::range(bound) got called with 0 as the
bound. The bound however is one above the maximum value, so 0 is a "special"
value to pass to this function. This commit fixes the lua crash by
assigning the RNG's full range to the bound 0, which is also fits to the
"maximum is bound - 1" principle, as (u32)-1 is the maximum value in the
u32 range.
</content>
</entry>
<entry>
<title>Improve accuracy and safety of float serialization</title>
<updated>2015-08-01T23:30:08+00:00</updated>
<author>
<name>kwolekr</name>
<email>kwolekr@minetest.net</email>
</author>
<published>2015-08-01T05:03:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=42cf5e972d1e27a92048712bc79806e1a088b96c'/>
<id>urn:sha1:42cf5e972d1e27a92048712bc79806e1a088b96c</id>
<content type='text'>
Multiplying by a factor of 1/1000.f (rather than dividing by 1000.f) directly
introduces an error of 1 ULP.  With this patch, an exact comparison of a
floating point literal with the deserialized F1000 form representing it is now
guaranteed to be successful.
In addition, the maxmium and minimum safely representible floating point
numbers are now well-defined as constants.
</content>
</entry>
<entry>
<title>Clean up util/serialization.{cpp,h} and add unit tests</title>
<updated>2015-08-01T23:24:46+00:00</updated>
<author>
<name>kwolekr</name>
<email>kwolekr@minetest.net</email>
</author>
<published>2015-08-01T04:34:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=bf991bde45b279b40fdfa6c6b6fc6e4dd265c7ee'/>
<id>urn:sha1:bf991bde45b279b40fdfa6c6b6fc6e4dd265c7ee</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: Log exceptions thrown inside of unit tests</title>
<updated>2015-08-01T03:30:25+00:00</updated>
<author>
<name>kwolekr</name>
<email>kwolekr@minetest.net</email>
</author>
<published>2015-08-01T03:29:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=7919318be715e3bf60f01b7c63816a3e5802176d'/>
<id>urn:sha1:7919318be715e3bf60f01b7c63816a3e5802176d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add AreaStore data structure</title>
<updated>2015-07-27T04:42:56+00:00</updated>
<author>
<name>est31</name>
<email>MTest31@outlook.com</email>
</author>
<published>2015-07-11T00:24:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=c30a2d68541b6ff451d92709478b4e37cac86447'/>
<id>urn:sha1:c30a2d68541b6ff451d92709478b4e37cac86447</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add more robust error checking to deSerialize*String routines</title>
<updated>2015-07-14T02:38:01+00:00</updated>
<author>
<name>kwolekr</name>
<email>kwolekr@minetest.net</email>
</author>
<published>2015-07-11T21:48:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=6f07f79c2f36b007b4c0385b7df2fc4612af7aba'/>
<id>urn:sha1:6f07f79c2f36b007b4c0385b7df2fc4612af7aba</id>
<content type='text'>
Add serializeHexString()
Clean up util/serialize.cpp
</content>
</entry>
<entry>
<title>Use UTF-8 instead of narrow</title>
<updated>2015-07-08T08:12:44+00:00</updated>
<author>
<name>est31</name>
<email>MTest31@outlook.com</email>
</author>
<published>2015-07-07T03:55:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=b0784ba87168e24b0533fc8718a0157cda5ea405'/>
<id>urn:sha1:b0784ba87168e24b0533fc8718a0157cda5ea405</id>
<content type='text'>
Use wide_to_utf8 and utf8_to_wide instead of wide_to_narrow and narrow_to_wide at almost all places.
Only exceptions: test functions for narrow conversion, and chat, which is done in a separate commit.
</content>
</entry>
<entry>
<title>Fix wrap_rows at inner byte of multibyte sequence</title>
<updated>2015-06-18T21:39:23+00:00</updated>
<author>
<name>figec</name>
<email>raptor.ext@gmail.com</email>
</author>
<published>2015-06-18T18:34:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=3b65a6a36c3e910359c69cd3e3e3fd89e50ba23e'/>
<id>urn:sha1:3b65a6a36c3e910359c69cd3e3e3fd89e50ba23e</id>
<content type='text'>
Also fix UTF-8 inner byte bounds and make unittest for case this fixes.
</content>
</entry>
<entry>
<title>Make wrap_rows not wrap inside utf-8 multibyte sequences</title>
<updated>2015-06-17T20:22:15+00:00</updated>
<author>
<name>est31</name>
<email>MTest31@outlook.com</email>
</author>
<published>2015-06-17T20:10:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=43dab2ffc899133fbd8bb4bf4d209a3bbc70b901'/>
<id>urn:sha1:43dab2ffc899133fbd8bb4bf4d209a3bbc70b901</id>
<content type='text'>
Also count multibyte sequences as "one" character.
Adds unittest for the bug reporter's case.
Fixes #2796.
</content>
</entry>
</feed>
