From d92e989c6e0031571ad2f335dae4c49c013b678a Mon Sep 17 00:00:00 2001 From: Svetlana Isakova Date: Fri, 7 Dec 2012 17:50:41 +0400 Subject: [PATCH] add assert to ControlFlowTest --- compiler/tests/org/jetbrains/jet/cfg/JetControlFlowTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/tests/org/jetbrains/jet/cfg/JetControlFlowTest.java b/compiler/tests/org/jetbrains/jet/cfg/JetControlFlowTest.java index 96fcfe1da91..aa0ede559b6 100644 --- a/compiler/tests/org/jetbrains/jet/cfg/JetControlFlowTest.java +++ b/compiler/tests/org/jetbrains/jet/cfg/JetControlFlowTest.java @@ -179,7 +179,8 @@ public class JetControlFlowTest extends JetLiteFixture { private static String formatInstruction(Instruction instruction, int maxLength, Set remainedAfterPostProcessInstructions) { String[] parts = instruction.toString().split("\n"); boolean isRemovedThroughPostProcess = !remainedAfterPostProcessInstructions.contains(instruction); - String prefix = isRemovedThroughPostProcess ? "- " : ((InstructionImpl)instruction).isDead() ? "* " : " "; + assert isRemovedThroughPostProcess == ((InstructionImpl)instruction).isDead(); + String prefix = isRemovedThroughPostProcess ? "- " : " "; if (parts.length == 1) { return prefix + String.format("%1$-" + maxLength + "s", instruction); }