package matrix4j.core;
import matrix4j.core.VectorIO;


public class TestVectorIO {
    static void testLoad() {
        String filename = "testfiles/vector_src.txt";
        Vector v = VectorIO.load(filename);
        System.out.println(v);
    }

    static void testSave() {
        String filename = "testfiles/vector_dst.txt";
        Vector v = new Vector(new double[]{0, 1, 2, 3});
        VectorIO.save(filename, v);
    }

    public static void main(String args[]) {
        testLoad();
        testSave();
    }
}

@@ -16,16 +16,17 @@
 j.core;%0A
+%0A
 import m
@@ -48,16 +48,45 @@
 ctorIO;%0A
+import matrix4j.core.Assert;%0A
 %0A%0Apublic
@@ -246,28 +246,134 @@
     
-System.out.println(v
+Vector u = new Vector(new double%5B%5D%7B%0A            1, 0, 6, 1, 9, 8, 2, 1, 6, 7%0A        %7D);%0A        Assert.assertTrue(v.equals(u)
 );%0A 

Raise AssertError if test fails