Skip to content

Commit

Permalink
Fix offset tests to work with the new duration constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jrstrunk committed Feb 9, 2025
1 parent ad6479d commit 620dc0c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/offset_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ import tempo/duration
import tempo/offset

pub fn new_offset_test() {
offset.new(0)
offset.new(duration.minutes(0))
|> should.equal(Ok(tempo.offset(0)))

offset.new(-720)
offset.new(duration.minutes(-720))
|> should.equal(Ok(tempo.offset(-720)))

offset.new(840)
offset.new(duration.minutes(840))
|> should.equal(Ok(tempo.offset(840)))

offset.new(1000)
offset.new(duration.minutes(1000))
|> should.be_error

offset.new(-1000)
offset.new(duration.minutes(-1000))
|> should.be_error
}

Expand Down

0 comments on commit 620dc0c

Please sign in to comment.