package net.zero918nobita.Xemime;

import org.junit.Test;

import java.util.HashMap;

import static org.junit.Assert.assertThat;
import static org.hamcrest.CoreMatchers.is;

public class FrameTest {
    @Test
    public void testNumberOfLayers() throws Exception {
        Main.loadLocalFrame(new HashMap<>());
        Main.defValue(new X_Symbol("sample"), new X_String("value"));
        assertThat(Main.frame.numberOfLayers(), is(1));
    }
}

@@ -226,22 +226,8 @@
 test
-NumberOfLayers
 () t
@@ -244,16 +244,89 @@
 ption %7B%0A
+        Main.defValue(new X_Symbol(%22variable%22), new X_String(%22global%22));%0A
         
@@ -403,12 +403,14 @@
 ol(%22
-samp
+variab
 le%22)
@@ -429,13 +429,13 @@
 ng(%22
-value
+local
 %22));
@@ -487,20 +487,246 @@
 (), is(1));%0A
+        assertThat(Main.getValueOfSymbol(new X_Symbol(%22variable%22)), is(new X_String(%22local%22)));%0A        Main.unloadLocalFrame();%0A        assertThat(Main.getValueOfSymbol(new X_Symbol(%22variable%22)), is(new X_String(%22global%22)));%0A
     %7D%0A%7D%0A

Update FrameTest