Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: MerkatorProject/Merkator.Tools
base: fb13639073
...
head fork: MerkatorProject/Merkator.Tools
compare: ab76b64b04
  • 3 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
2  Merkator.Tools.Tests/Merkator.Tools.Tests.csproj
@@ -45,7 +45,7 @@
</CodeAnalysisDependentAssemblyPaths>
</ItemGroup>
<ItemGroup>
- <Compile Include="DummyProvider.cs" />
+ <Compile Include="Random\DummyProvider.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Random\RandomGenTests.cs" />
</ItemGroup>
View
2  Merkator.Tools.Tests/Random/DummyProvider.cs
@@ -11,7 +11,7 @@ class DummyProvider
{
public static RandomGen CreateFromInts(params int[] input)
{
- int[] inputCopy = (int[])input.Clone();
+ int[] inputCopy = input.Reverse().ToArray();
RandomIntDataProvider provider = (buf) =>
{
Contract.Assert(buf.Length == inputCopy.Length);
View
11 Merkator.Tools.Tests/Random/RandomGenTests.cs
@@ -55,11 +55,14 @@ public TestContext TestContext
#endregion
[TestMethod]
- public void TestMethod1()
+ public void BasicIntTest()
{
- //
- // TODO: Add test logic here
- //
+ var rng=DummyProvider.CreateFromInts(1, 2, 3, 4, 5);
+ Assert.AreEqual(1, rng.Int32());
+ Assert.AreEqual(2, rng.Int32());
+ Assert.AreEqual(3, rng.Int32());
+ Assert.AreEqual(4, rng.Int32());
+ Assert.AreEqual(5, rng.Int32());
}
}
}

No commit comments for this range

Something went wrong with that request. Please try again.