JaRMoS  1.1
Java Reduced Model Simulations
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
UtilsTest.java
Go to the documentation of this file.
1 package jarmos.test;
2 
3 import static org.junit.Assert.fail;
4 import jarmos.Log;
6 
7 import java.util.Arrays;
8 
9 import org.junit.Test;
10 
15 public class UtilsTest {
16 
20  @Test
21  public void testLinspace() {
22  // double a = 0;
23  // double b = 10;
24  // double[] s = Util.linspace(a, b, 10);
25  //
26  // fail("Not yet implemented");
27  }
28 
32  @Test
33  public void testRange() {
34  fail("Not yet implemented");
35  }
36 
37  @Test
38  public void testColorGen() {
39  int s = 1000;
40  ColorGenerator cg = new ColorGenerator();
41  Log.d("VisData", "Default colors of size " + s + ": " + Arrays.toString(cg.getDefaultColor(s)));
42  }
43 }
Provides a Log class imitating the Android Log class when not used on android systems.
Definition: Log.java:11
The color generator is used to produce RGBA (RGB+Alpha) values from a given array of floats...