Skip to content

Commit

Permalink
Merge branch 'release/1.2.2' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
drewsonne committed Aug 31, 2020
2 parents 7cb4bbd + 69301f2 commit 758526c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@drewsonne/maya-dates",
"version": "1.2.1",
"version": "1.2.2",
"description": "Typescript package to manipulate dates in the Maya Calendar",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down
10 changes: 10 additions & 0 deletions src/__tests__/cr/calendar-round.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ import {getHaabMonth, HaabMonth} from "../../cr/component/haabMonth";
import NumberCoefficient from "../../cr/component/numberCoefficient";
import WildcardCoefficient from "../../cr/component/wildcardCoefficient";

describe('test cr cycle', () => {
let counter = 1;
let cr = origin.next()
while (!origin.equal(cr)) {
cr = cr.next()
counter += 1
}
expect(counter).to.eq(18980)
})

/**
* @test {CalendarRoundFactory}
* @test {CalendarRound#next}
Expand Down
2 changes: 1 addition & 1 deletion src/cr/calendar-round.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class CalendarRound extends CommentWrapper implements IPart {

equal(other: IPart): boolean {
if (other instanceof CalendarRound) {
throw new Error('Not Implemented')
return this === other
}
return false;
}
Expand Down

0 comments on commit 758526c

Please sign in to comment.