Skip to content

Commit 0427249

Browse files
committed
Added test.
1 parent dcf1c2d commit 0427249

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

RhythmGameUtilities.Tests/UtilitiesTest.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ public void TestIsOnTheBeat()
4444
Assert.That(Utilities.IsOnTheBeat(60, 1.5f), Is.False);
4545
}
4646

47+
[Test]
48+
public void TestRoundUpToTheNearestMultiplier()
49+
{
50+
Assert.That(Utilities.RoundUpToTheNearestMultiplier(12, 10), Is.EqualTo(20));
51+
}
52+
4753
[Test]
4854
public void TestLerp()
4955
{

UnityPackage/Editor/Tests/UtilitiesTest.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ public void TestIsOnTheBeat()
4444
Assert.That(Utilities.IsOnTheBeat(60, 1.5f), Is.False);
4545
}
4646

47+
[Test]
48+
public void TestRoundUpToTheNearestMultiplier()
49+
{
50+
Assert.That(Utilities.RoundUpToTheNearestMultiplier(12, 10), Is.EqualTo(20));
51+
}
52+
4753
[Test]
4854
public void TestLerp()
4955
{

0 commit comments

Comments
 (0)