From fb1297a0cd84fde95c565178d0d223258d1c2bee Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 31 Aug 2023 23:16:59 +0200 Subject: Renamed activity.days_in(year) --- spec/activity_spec.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'spec/activity_spec.lua') 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) -- cgit v1.1