package ru.job4j;

import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

/**
*Test
*
*@author Alexander Erokhov (qsok3d@gmail.com)
*@version $Id$
*@snipe 0.1
*/

public class CalculateTest{
/**
*Test add.
*/

@Test
public void whenAddOneToOneThenTwo(){
	ByteArrayOutputStream out = new ByteArrayOutputStream();
	System.setOut(new PrintStream(out));
	Calculate.main(null);
	assertThat(out.toString(), is("Hello World\r\n"));
}
}

@@ -193,16 +193,17 @@
 **%0A*Test
+.
 %0A*%0A*@aut
@@ -265,11 +265,11 @@
 %0A*@s
-nip
+inc
 e 0.
@@ -300,16 +300,17 @@
 lateTest
+ 
 %7B%0A/**%0A*T
@@ -364,16 +364,17 @@
 henTwo()
+ 
 %7B%0A%09ByteA

add new Test