changeset 227:ddacadba5095

add separate test
author sugi
date Thu, 28 Mar 2013 21:32:21 +0900
parents 6d546924eea0
children 9eaaca2b8a57
files src/alice/test/codesegment/local/bitonicsort/SortTest.java
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/alice/test/codesegment/local/bitonicsort/SortTest.java	Thu Mar 28 21:05:39 2013 +0900
+++ b/src/alice/test/codesegment/local/bitonicsort/SortTest.java	Thu Mar 28 21:32:21 2013 +0900
@@ -5,7 +5,7 @@
 public class SortTest {
 	
 	public static void main(String args[]){
-		int size1 = 1000000;
+		int size1 = 10000;
 		int size2 = 1000;
 		int MAX = 100000;
 		long t;
@@ -15,12 +15,12 @@
 		
 		Random rnd = new Random();
 		for (int i = 0; i < size1; i++){
-			int num = rnd.nextInt(MAX);
+			int num = rnd.nextInt(MAX)+10;
 			list1.table[i] = num;
 			list2.table[i] = num;
 		}
 		for (int i = 0; i < size2; i++){
-			int num = rnd.nextInt(MAX);
+			int num = rnd.nextInt(MAX)+10;
 			list3.table[i] = num;
 		}
 		
@@ -46,5 +46,10 @@
 	    Sort.check(list1);
 	    Sort.check(list2);
 	    
+	    // separate Test
+	    list1.showData(50);
+	    list1.createDataList(0, 25).showSize();
+	    list1.createDataList(0, 25).showData();
+	    list1.createDataList(25, 25).showData();
 	}
 }