package org.moe.parser

import org.scalatest.FunSuite
import org.scalatest.BeforeAndAfter
import org.scalatest.matchers.ShouldMatchers

import org.moe.runtime._
import org.moe.interpreter._
import org.moe.ast._
import org.moe.parser._

class SimpleExpressionTestSuite extends FunSuite with BeforeAndAfter with ParserTestUtils with ShouldMatchers {

  test("... literal int addition") {
    val result = interpretCode("2+2")
    result.asInstanceOf[MoeIntObject].getNativeValue should equal (4)
  }

}

package org.moe.parser

import org.scalatest.FunSuite
import org.scalatest.BeforeAndAfter

import org.moe.runtime._
import org.moe.interpreter._
import org.moe.ast._
import org.moe.parser._

class SimpleExpressionTestSuite extends FunSuite with BeforeAndAfter with ParserTestUtils {

  test("... literal int addition") {
    val ast = basicAST(Parser.parseStuff("2+2"))
    println(Serializer.toJSON(ast))
    // Interpreter.eval(runtime, runtime.getRootEnv, ast)
  // }
    // val result = interpretCode("2 + 2")
    // assert(result.asInstanceOf[MoeIntObject].getNativeValue === 4)
  }


}

--- 
+++ 
@@ -2,22 +2,18 @@
 
 import org.scalatest.FunSuite
 import org.scalatest.BeforeAndAfter
+import org.scalatest.matchers.ShouldMatchers
 
 import org.moe.runtime._
 import org.moe.interpreter._
 import org.moe.ast._
 import org.moe.parser._
 
-class SimpleExpressionTestSuite extends FunSuite with BeforeAndAfter with ParserTestUtils {
+class SimpleExpressionTestSuite extends FunSuite with BeforeAndAfter with ParserTestUtils with ShouldMatchers {
 
   test("... literal int addition") {
-    val ast = basicAST(Parser.parseStuff("2+2"))
-    println(Serializer.toJSON(ast))
-    // Interpreter.eval(runtime, runtime.getRootEnv, ast)
-  // }
-    // val result = interpretCode("2 + 2")
-    // assert(result.asInstanceOf[MoeIntObject].getNativeValue === 4)
+    val result = interpretCode("2+2")
+    result.asInstanceOf[MoeIntObject].getNativeValue should equal (4)
   }
 
-
 }
Update test to actually interpret and fix style
