aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2021-11-09 21:56:41 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2021-11-09 21:56:41 +0100
commit3561a7bfa2e3ed6690c359c052cf056652df4deb (patch)
treee6a4fccd058e970a94ed35a434d26368215d75fb /advtrains
parent9ec9db0ca98e8a1f50b20e4f0d916a83d96a581c (diff)
downloadadvtrains-3561a7bfa2e3ed6690c359c052cf056652df4deb.tar.gz
advtrains-3561a7bfa2e3ed6690c359c052cf056652df4deb.tar.bz2
advtrains-3561a7bfa2e3ed6690c359c052cf056652df4deb.zip
Add more unit tests, fix broken unit test
Diffstat (limited to 'advtrains')
-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))