mirror of
https://github.com/danbulant/introductionToProgramming
synced 2026-05-19 20:38:36 +00:00
16 lines
341 B
Java
16 lines
341 B
Java
package week6;
|
|
|
|
import java.util.Arrays;
|
|
|
|
public class HistogramTests {
|
|
public static void main(String[] args) {
|
|
assert Arrays.equals(
|
|
new int[]{ 0,1,1,1 },
|
|
Histogram.histogram(new int[]{ 1,2,3 }, 4)
|
|
);
|
|
assert Arrays.equals(
|
|
new int[]{ 0,3,0,0 },
|
|
Histogram.histogram(new int[]{ 1,1,1 }, 4)
|
|
);
|
|
}
|
|
}
|