package me.wener.bbvm.vm;

import me.wener.bbvm.asm.ParseException;
import org.junit.Test;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;

/**
 * @author wener
 * @since 15/12/18
 */
public class BasmSpecTest {
    @Test
    public void in() throws IOException, ParseException {
        BasmTester test = new BasmTester();
        Files.walk(Paths.get("../bbvm-test/case/in"))
                .filter(p -> !p.toFile().isDirectory())
                .filter(p -> p.toFile().getName().endsWith(".basm"))
                .forEach(p -> test.init(p.toFile()).run());
    }
}

@@ -322,95 +322,662 @@
     
-BasmTester test = new BasmTester(
+doTest(%22../bbvm-test/case/in%22);%0A    %7D%0A%0A    @Test%0A    public void out() throws IOException, ParseException %7B%0A        doTest(%22../bbvm-test/case/out%22);%0A    %7D%0A%0A    @Test%0A    public void file() throws IOException, ParseException %7B%0A        doTest(%22../bbvm-test/case/file%22);%0A    %7D%0A%0A    @Test%0A    public void graph() throws IOException, ParseException %7B%0A        doTest(%22../bbvm-test/case/graph%22
 );%0A    
+%7D%0A%0A
     
-Files.walk(Paths.get(%22../bbvm-test/case/in%22
+@Test%0A    public void basic() throws IOException, ParseException %7B%0A        doTest(%22../bbvm-test/case/basic%22);%0A    %7D%0A%0A    private void doTest(String first) throws IOException %7B%0A        BasmTester test = new BasmTester();%0A        Files.walk(Paths.get(first
 ))%0A 

Add file basic graph basm test.