package org.bds.test;

import org.bds.Config;
import org.bds.util.Gpr;
import org.junit.Before;
import org.junit.Test;

/**
 * Quick test cases when creating a new feature...
 *
 * @author pcingola
 *
 */
public class TestCasesZzz extends TestCasesBase {

	@Before
	public void beforeEachTest() {
		Config.reset();
		Config.get().load();
	}

	@Test
	public void test223_switch_case_return() {
		Gpr.debug("Test");
		runAndCheck("test/z.bds", "res", "1");
	}

}

@@ -363,11 +363,11 @@
 test
-223
+166
 _swi
@@ -427,17 +427,23 @@
 k(%22test/
-z
+run_166
 .bds%22, %22

Switch + case + return was leaving values on the vm stack. Fixed