Skip to content

Commit

Permalink
Update HomeworkTest.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Huda-sh committed Oct 23, 2023
1 parent b227ae4 commit 88fe9f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Binary_Search_Homework_Test/HomeworkTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class HomeworkTest // DON'T EDIT THIS FILE UNDER ANY CIRCUMSTANCES!!

// pass true for the first occurrence
int last = BinarySearchHomework.BinarySearchForCalculatingRepeated(arr, key, false, 0, arr.Length);
Assert.AreEqual(5, last);
Assert.AreEqual(10, last);
}// DON'T EDIT THIS FILE UNDER ANY CIRCUMSTANCES!!

[TestMethod]// DON'T EDIT THIS FILE UNDER ANY CIRCUMSTANCES!!
Expand All @@ -46,7 +46,7 @@ public class HomeworkTest // DON'T EDIT THIS FILE UNDER ANY CIRCUMSTANCES!!

// pass true for the first occurrence
int count = BinarySearchHomework.GetRepeatCount(arr, key);
Assert.AreEqual(10, count);
Assert.AreEqual(5, count);
}// DON'T EDIT THIS FILE UNDER ANY CIRCUMSTANCES!!


Expand Down

0 comments on commit 88fe9f2

Please sign in to comment.