package test.com.maderilo.stringCalculator;
import static org.junit.Assert.assertEquals;

import org.junit.Test;

import com.maderilo.stringCalculator.StringCalculator;



public class StringCalculatorTest {

	@Test
	public void should_return_0_for_empty_string() throws Exception {
		String input = "";
		
		int result = StringCalculator.Add(input);
		
		assertEquals(0, result);
	}
	
	@Test
	public void should_return_number_for_1number_string() throws Exception {
		String input = "12";
		
		int result = StringCalculator.Add(input);
		
		assertEquals(12, result);
	}
	
	
	@Test
	public void should_return_sum_for_2number_comma_string() throws Exception {
		String input = "12,2";
		
		int result = StringCalculator.Add(input);
		
		assertEquals(14, result);
	}
}

@@ -610,17 +610,27 @@
 sum_for_
-2
+more_than_1
 number_c
@@ -684,16 +684,20 @@
  = %2212,2
+,3,5
 %22;%0A%09%09%0A%09%09
@@ -760,10 +760,10 @@
 als(
-14
+22
 , re

Add method allowed to handle an unknown amount of numbers