Skip to content

Commit

Permalink
remove 'skipped' noise from build
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardWarburton committed Mar 12, 2019
1 parent 07bfd4c commit 6343eb6
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package uk.co.real_logic.artio.util;

import org.agrona.concurrent.UnsafeBuffer;
import org.junit.Assume;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
Expand Down Expand Up @@ -164,8 +163,11 @@ private boolean isExpectedOutputContainTrailingZeros()
@Test
public void canEncodeDecimalFloat()
{
Assume.assumeTrue("ignoring test since expected output has Trailing Zeros",
!isExpectedOutputContainTrailingZeros());
// ignoring test since expected output has Trailing Zeros
if (isExpectedOutputContainTrailingZeros())
{
return;
}

final int length = input.length();
final UnsafeBuffer buffer = new UnsafeBuffer(new byte[LONGEST_FLOAT_LENGTH]);
Expand All @@ -181,12 +183,12 @@ public void canEncodeDecimalFloat()
@Test
public void canEncodeValueAndScale()
{
if (value == 0 && scale > 0)
// ignoring test since expected output has no Trailing Zeros for input value 0 (with positive scale)
if (value == 0 && scale > 0 && !isExpectedOutputContainTrailingZeros())
{
Assume.assumeTrue(
"ignoring test since expected output has no Trailing Zeros for input value 0 (with positive scale)",
isExpectedOutputContainTrailingZeros());
return;
}

final int length = input.length();
final UnsafeBuffer buffer = new UnsafeBuffer(new byte[LONGEST_FLOAT_LENGTH]);
final MutableAsciiBuffer string = new MutableAsciiBuffer(buffer);
Expand Down

0 comments on commit 6343eb6

Please sign in to comment.