Created
September 23, 2012 18:13
-
-
Save edipofederle/3772558 to your computer and use it in GitHub Desktop.
sct.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Test | |
| public void test1(){ | |
| int count = 0; | |
| for (List<Integer> word : someNonEmptyLists(positiveIntegers())) { | |
| int sum = 0; | |
| count++; | |
| String numberStr = ""; | |
| for (Integer integer : word) { | |
| sum += integer; | |
| numberStr += integer.toString() + ","; | |
| } | |
| Assert.assertEquals(sum,StringCalculator.sum((numberStr.substring(0, numberStr.length() -1)))); | |
| } | |
| System.out.println(count + " asserts"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment