4 * Class used in debugging to test assertions. Implementation
5 * is platform dependent. For example the unix_impl version
6 * will print the string and throw an error if an assertion fails.
7 * The rcx_impl version will only throw an error.
11 public class Assertion {
13 * @param s A string that may be printed along with any other
15 * @param flag if true then an Error will be thrown, otherwise
16 * nothing will happend.
17 * @throws Error if 'flag' is false.
19 public static native void test(String s, boolean flag);
22 * If the actual value is not equal to the expected value, throw an Error.
23 * @param s A string that may be printed along with any other
25 * @param expected the expected value.
26 * @param was the actual value.
27 * @throws Error if 'flag' is false.
29 public static native void testEQ(String s, int expected, int was);