Skip to content

Commit c9164dd

Browse files
authored
Merge pull request #32 from neogeek/hotfix/added-test
[hotfix] Added test
2 parents dcf1c2d + 0427249 commit c9164dd

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)