From 3561a7bfa2e3ed6690c359c052cf056652df4deb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Tue, 9 Nov 2021 21:56:41 +0100 Subject: Add more unit tests, fix broken unit test --- advtrains/spec/speed_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'advtrains') 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)) -- cgit v1.2.3