Skip to content

Commit

Permalink
RavenDB-20171 Added messages to Assert.Equal() calls so we'll know fo…
Browse files Browse the repository at this point in the history
…r sure which one is ocassionally failing
  • Loading branch information
arekpalinski committed Jan 15, 2024
1 parent c709374 commit fdcfcfa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/FastTests/Sparrow/Memory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,14 @@ public void IncreasingSizeForLoop()
s1Ptr[i] = 0x00;
s2Ptr[i] = 0x00;

Assert.True(Memory.CompareInline(s1Ptr, s2Ptr, s1.Length) == 0);
Assert.True(AdvMemory.CompareInline(s1Ptr, s2Ptr, s1.Length) == 0);
Assert.True(AdvMemory.CompareSmallInlineNet6OorLesser(s1Ptr, s2Ptr, s1.Length) == 0);
Assert.True(AdvMemory.CompareSmallInlineNet7(s1Ptr, s2Ptr, s1.Length) == 0);
Assert.True(Memory.CompareInline(s1Ptr, s2Ptr, s1.Length) == 0, "Memory.CompareInline(s1Ptr, s2Ptr, s1.Length) == 0");
Assert.True(AdvMemory.CompareInline(s1Ptr, s2Ptr, s1.Length) == 0, "AdvMemory.CompareInline(s1Ptr, s2Ptr, s1.Length) == 0");
Assert.True(AdvMemory.CompareSmallInlineNet6OorLesser(s1Ptr, s2Ptr, s1.Length) == 0, "AdvMemory.CompareSmallInlineNet6OorLesser(s1Ptr, s2Ptr, s1.Length) == 0");
Assert.True(AdvMemory.CompareSmallInlineNet7(s1Ptr, s2Ptr, s1.Length) == 0, "AdvMemory.CompareSmallInlineNet7(s1Ptr, s2Ptr, s1.Length) == 0");

if (Avx2.IsSupported)
{
Assert.True(AdvMemory.CompareAvx2(s1Ptr, s2Ptr, s1.Length) == 0);
Assert.True(AdvMemory.CompareAvx2(s1Ptr, s2Ptr, s1.Length) == 0, "AdvMemory.CompareAvx2(s1Ptr, s2Ptr, s1.Length) == 0");
}
}
catch
Expand Down

0 comments on commit fdcfcfa

Please sign in to comment.