connell-class / revassess

this is a trial repo for making a template for the revature assessment
2 stars 11 forks source link

Tier 1 Test 3 one assertion in wrong #13

Closed theo-gherman closed 4 years ago

theo-gherman commented 4 years ago

Describe the bug In Tier 1 Test 3 the sum should be negative 45 int[] arr3 = { -1, -2, -3, -4, -5, -6, -7, -8, -9 }; assertEquals(45, SumOverArray.IterateAndSum(arr3));

To Reproduce Steps to reproduce the behavior:

  1. Go to RevassessTier1\src\test\java\com\tier1\answers\Answer3Tests.java
  2. Scroll down to lines 33 and 34
  3. int[] arr3 = { -1, -2, -3, -4, -5, -6, -7, -8, -9 }; assertEquals(45, SumOverArray.IterateAndSum(arr3));

Expected behavior assertion should be made for -45 not 45 int[] arr3 = { -1, -2, -3, -4, -5, -6, -7, -8, -9 }; assertEquals(-45, SumOverArray.IterateAndSum(arr3));

connellrobert commented 4 years ago

Fixed in main template.