package com.seeth.clapir;
/*
public class TestCurve {
private static final String testTAG = "TestCurve";
public boolean TEST = false;
private void logCurve(Curve c) {
String result = "";
for (int i = 0; i < c.length; i++) {
result = result + i + ":" + c.array[i] + ", ";
}
Log.d(testTAG, result);
}
public void testAll() {
if (TEST) {
testSum();
testRamp();
testSquare();
testMult();
testSubtract();
Log.d(testTAG, "Done with test cases.");
}
}
public void testSum() {
Log.d(testTAG, "Testing a.sum()");
Curve a = new Curve(10000);
a.ramp(0, 1, 1);
Log.d(testTAG, "a.sum() = " + a.sum(0, 10000));
}
public void testRamp() {
Log.d(testTAG, "Testing a.ramp()");
Curve a = new Curve(100);
a.ramp(0, 1, 1);
logCurve(a);
}
public void testSquare() {
Log.d(testTAG, "Testing a.square()");
Curve a = new Curve(100);
a.ramp(0, 1, 1);
a.square(100);
logCurve(a);
}
public void testMult() {
Log.d(testTAG, "Testing a.mult(b)");
Curve a = new Curve(1000);
Curve b = new Curve(1000);
a.ramp(0, 1, (float) .1);
b.ramp(0, 1, (float) .1);
Curve c = new Curve(1000);
c = a.mult(b,1000);
logCurve(c);
}
public void testSubtract() {
Log.d(testTAG, "Testing a.subtract(b)");
Curve a = new Curve(1000);
Curve b = new Curve(1000);
a.ramp(0, 1, 2);
b.ramp(0, 1, 1);
Curve c = new Curve(1000);
c = a.subtract(b,1000);
logCurve(c);
}
public void testFill() {
Log.d(testTAG, "Testing a.fill()");
Curve a = new Curve(100);
a.fill(0);
logCurve(a);
}
} */