diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/activity_spec.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/activity_spec.lua b/spec/activity_spec.lua index 08160fa..074be22 100644 --- a/spec/activity_spec.lua +++ b/spec/activity_spec.lua @@ -2,21 +2,21 @@ local activity = require "activity" describe("Days in a year", function() it("should support regular years", function() - assert.are.equal(365, activity.days(1970)) - assert.are.equal(365, activity.days(2001)) + assert.are.equal(365, activity.days_in(1970)) + assert.are.equal(365, activity.days_in(2001)) end) it("should support lean years", function() - assert.are.equal(366, activity.days(2004)) - assert.are.equal(366, activity.days(1980)) + assert.are.equal(366, activity.days_in(2004)) + assert.are.equal(366, activity.days_in(1980)) end) it("should support *00 years", function() - assert.are.equal(366, activity.days(2000)) - assert.are.equal(365, activity.days(2100)) - assert.are.equal(365, activity.days(2200)) - assert.are.equal(365, activity.days(2300)) - assert.are.equal(366, activity.days(2400)) + assert.are.equal(366, activity.days_in(2000)) + assert.are.equal(365, activity.days_in(2100)) + assert.are.equal(365, activity.days_in(2200)) + assert.are.equal(365, activity.days_in(2300)) + assert.are.equal(366, activity.days_in(2400)) end) end) |