summaryrefslogtreecommitdiff
path: root/builtin/mainmenu.lua
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2013-11-23 20:05:07 +0100
committerNovatux <nathanael.courant@laposte.net>2013-11-23 20:05:07 +0100
commit83f1d9ae6b859684057a6728d0b6fb96539d13c1 (patch)
tree5e1112e97c386c2213b69158460c743324531d17 /builtin/mainmenu.lua
parent374e68d205cac28df7321020feb348511932ac30 (diff)
downloadminetest-83f1d9ae6b859684057a6728d0b6fb96539d13c1.tar.gz
minetest-83f1d9ae6b859684057a6728d0b6fb96539d13c1.tar.bz2
minetest-83f1d9ae6b859684057a6728d0b6fb96539d13c1.zip
Fix my name (doesn't display correctly because of utf8 characters)
Diffstat (limited to 'builtin/mainmenu.lua')
-rw-r--r--builtin/mainmenu.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua
index a8adca54f..c09b9cbcd 100644
--- a/builtin/mainmenu.lua
+++ b/builtin/mainmenu.lua
@@ -1014,7 +1014,7 @@ function tabbuilder.tab_credits()
"kahrl <kahrl@gmx.net>,"..
"sapier,"..
"ShadowNinja <shadowninja@minetest.net>,"..
- "Nathanaƫl Courant (Nore/Novatux) <nore@mesecons.net>,"..
+ "Nathanael Courant (Nore/Novatux) <nore@mesecons.net>,"..
"BlockMen,"..
","..
"#FFFF00" .. fgettext("Active Contributors") .. "," ..
lass="hl opt">.is_true (speed.not_greaterp(a, b)) assert.is_false(speed.lessp(a, a)) assert.is_false(speed.greaterp(a, a)) assert.is_true (speed.equalp(a, a)) assert.is_false(speed.not_equalp(a, a)) assert.equal(b, speed.max(a, b)) assert.equal(a, speed.min(a, b)) end) it("should handle -1", function() assert.is_false(speed.lessp(-1, math.random())) end) it("should handle nil", function() assert.is_true(speed.greaterp(nil, math.random())) end) it("should handle mixed nil and -1", function() assert.is_true(speed.equalp(nil, -1)) end) end) describe("The speed restriction setter", function() it("should set the signal aspect", function() local t = {speed_restrictions_t = {x = 5, y = 9}} local u = {speed_restrictions_t = {x = 7, y = 9}, speed_restriction = 7} speed.merge_aspect(t, {main = 7, type = "x"}) assert.same(u, t) end) it("should work with existing signal aspect tables", function() local t = {speed_restrictions_t = {main = 5, foo = 3}} local u = {speed_restrictions_t = {main = 7, foo = 3}, speed_restriction = 3} speed.merge_aspect(t, {main = 7}) assert.same(u, t) end) it("should work with distant signals", function() local t = {speed_restrictions_t = {main = 5}} local u = {speed_restrictions_t = {main = 5}, speed_restriction = 5} speed.merge_aspect(t, {}) assert.same(u, t) end) it("should create the restriction table if necessary", function() local t = {speed_restriction = 5} local u = {speed_restriction = 3, speed_restrictions_t = {main = 5, foo = 3}} speed.merge_aspect(t, {main = 3, type = "foo"}) assert.same(u, t) end) it("should also create the restriction table for trains without any speed limit", function() local t = {} local u = {speed_restrictions_t = {}} speed.merge_aspect(t, {}) assert.same(u, t) end) it("should set the speed restriction to nil if that is the case", function() local t = {speed_restriction = math.random(20)} local u = {speed_restrictions_t = {main = -1}} speed.merge_aspect(t, {main = -1}) assert.same(u, t) end) end)