Skip to content

Commit

Permalink
Fix RequestId Test (#74)
Browse files Browse the repository at this point in the history
Co-authored-by: notgiven688 <[email protected]>
  • Loading branch information
notgiven688 and notgiven688 authored Dec 17, 2023
1 parent ae01619 commit bc9590a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/JitterTests/MiscTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ public void Setup()
[TestCase]
public static void RequestId()
{
Assert.That(World.RequestId() == 1);
Assert.That(World.RequestId(1) == (2,3));
Assert.That(World.RequestId() == 3);
Assert.That(World.RequestId(2) == (4,6));
Assert.That(World.RequestId() == 6);
Assert.That(World.RequestId(3) == (7,10));
Assert.That(World.RequestId(3) == (10,13));
ulong id0 = World.RequestId();
Assert.That(World.RequestId() == id0 + 1);
Assert.That(World.RequestId(1) == (id0 + 2, id0 + 3));
Assert.That(World.RequestId() == id0 + 3);
Assert.That(World.RequestId(2) == (id0 + 4, id0 + 6));
Assert.That(World.RequestId() == id0 + 6);
Assert.That(World.RequestId(3) == (id0 + 7, id0 + 10));
Assert.That(World.RequestId(3) == (id0 + 10, id0 + 13));
}
}

0 comments on commit bc9590a

Please sign in to comment.