aboutsummaryrefslogtreecommitdiff
path: root/advtrains/spec
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains/spec')
-rw-r--r--advtrains/spec/speed_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/spec/speed_spec.lua b/advtrains/spec/speed_spec.lua
index 0f0365f..97f8ffa 100644
--- a/advtrains/spec/speed_spec.lua
+++ b/advtrains/spec/speed_spec.lua
@@ -23,7 +23,7 @@ describe("Arithmetic functions on speed restrictions", function()
assert.is_false(speed.lessp(-1, math.random()))
end)
it("should handle nil", function()
- assert.is_false(speed.greaterp(nil, math.random()))
+ assert.is_true(speed.greaterp(nil, math.random()))
end)
it("should handle mixed nil and -1", function()
assert.is_true(speed.equalp(nil, -1))