aboutsummaryrefslogtreecommitdiff
path: root/fonts
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-07-02 23:33:18 +0200
committersapier <Sapier at GMX dot net>2014-07-02 23:33:18 +0200
commitb8343cd11c834fb2613b104418ed08e9fdb1665a (patch)
tree27194eb00fb695367fcd5cb0e281639bf75a48b1 /fonts
parent3d6d66b181b894180164aa34aab7b2029bef1bf4 (diff)
Fix memory leaks in GenericCAO, ShaderSource and Player classes
Diffstat (limited to 'fonts')
0 files changed, 0 insertions, 0 deletions
lass="hl opt">("speed") describe("Arithmetic functions on speed restrictions", function() it("should work", function() local a = math.random() local b = math.random(20) -- This test is basically a "typo check" assert.is_true (speed.lessp(a, b)) assert.is_false(speed.greaterp(a, b)) assert.is_false(speed.not_lessp(a, b)) assert.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}