package de.fnordbedarf.debugger.givenprint;

import org.junit.jupiter.api.Test;

import static de.fnordbedarf.debugger.Debugger.show;
import static org.junit.jupiter.api.Assertions.assertEquals;


/**
 * Created by HiekmaHe on 04.05.2017.
 *
 */
class Show
{
	@Test
	void whenMessageThenShowClickableTextAndText() {
		// arrange
		String expected = ".(Show.java:21): hello world!";
		String showMe = "hello world!";

		// act
		String actual = show(showMe);

		// assert
		assertEquals(expected, actual);
	}

	@Test
	void whenMessageThenShowClickableTextAndText2() {
		// arrange
		String expected = ".(Show.java:34): 2147483647";
		Integer showMe = Integer.MAX_VALUE;

		// act
		String actual = show(showMe);

		// assert
		assertEquals(expected, actual);
	}

	@Test
	void whenMessageThenShowClickableTextAndText3() {
		// arrange
		String expected = ".(Show.java:47): -1";
		int showMe = -1;

		// act
		String actual = show(showMe);

		// assert
		assertEquals(expected, actual);
	}
}
@@ -356,17 +356,17 @@
 w.java:2
-1
+2
 ): hello
@@ -607,17 +607,17 @@
 w.java:3
-4
+5
 ): 21474
@@ -860,17 +860,17 @@
 w.java:4
-7
+8
 ): -1%22;%0A

fix test