Content deleted Content added
→AssertWithinDelta: reply, and strike my mention of "assertDeltaContains" - must have been tired when I wrote that |
→Table display: new section |
||
Line 22:
: True, that was a completely wrong example :) I've added a new one, and tested it in the debug console. Btw., the reason I added the method was that I ran into the problem on [[:no:Module:Coordinate/testtilfeller]]. – ''[[User:Danmichaelo|Danmichaelo]] ([[User talk:Danmichaelo|talk]])'' 00:45, 5 January 2014 (UTC)
:: Thanks for clearing that up. :) It's interesting to see how the floating point error works in a real-world example. I've given the docs a copy edit and expanded them a little to note that integers can be represented exactly up to 2^53. Feel free to tweak that if you want. — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 11:48, 5 January 2014 (UTC)
== Table display ==
At the moment, if two different tables are tested for equality, the wikitable generated by the module simply lists them both as "table". It would be nice to actually show the contents of the table in a reasonably nice format. Perhaps we can do something with [[Module:User:Anomie/deepToString]] and/or [https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FScribunto.git/dbbf1803c6489dcb58d77566044e283ec17e7602/engines%2FLuaCommon%2Flualib%2Fmw.lua#L575 mw.logObject]? deepToString fails when trying to display mw.title objects, and while mw.logObject handles them ok, it only outputs to the log buffer. So we would need to do some tweaking to get something that suits our purposes, but it probably wouldn't be too hard. — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 12:00, 5 January 2014 (UTC)
|