From c8504151d909ead0831e7acf9da16273b2927c7f Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Mon, 20 Sep 2021 18:58:35 +0000 Subject: [PATCH] Formatted with Google Java Formatter --- Searches/IBSearch_test.java | 52 +++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/Searches/IBSearch_test.java b/Searches/IBSearch_test.java index 9746932d..b1fe99dd 100644 --- a/Searches/IBSearch_test.java +++ b/Searches/IBSearch_test.java @@ -1,30 +1,32 @@ - import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Test; public class IterativeBinarySearch_Test { - -// kiem thu luong du lieu -// ham search dung de tim key trong mang da xap xep -// dua theo tieu chi all-du path tim dc 4 tescase - Integer[] arr = {0,1,2,3,4,5,6,7,8,9,10}; - IterativeBinarySearch search = new IterativeBinarySearch(); - @Test - void tc1_key_khong_co_trong_mang() { - assertTrue(search.find(arr, 11)==-1); - } - @Test - void tc2_key_nam_chinh_giua_mang() { - assertTrue(search.find(arr, 5)==5); - } - @Test - void tc3_key_nam_cuoi_mang() { - assertTrue(search.find(arr, 10)==10); - } - @Test - void tc4_key_nam_dau_mang() { - assertTrue(search.find(arr, 0)==0); - } - } - \ No newline at end of file + + // kiem thu luong du lieu + // ham search dung de tim key trong mang da xap xep + // dua theo tieu chi all-du path tim dc 4 tescase + Integer[] arr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; + IterativeBinarySearch search = new IterativeBinarySearch(); + + @Test + void tc1_key_khong_co_trong_mang() { + assertTrue(search.find(arr, 11) == -1); + } + + @Test + void tc2_key_nam_chinh_giua_mang() { + assertTrue(search.find(arr, 5) == 5); + } + + @Test + void tc3_key_nam_cuoi_mang() { + assertTrue(search.find(arr, 10) == 10); + } + + @Test + void tc4_key_nam_dau_mang() { + assertTrue(search.find(arr, 0) == 0); + } +}