@Test
public void testVariableAssignments() throws ParserException {

    ScenarioParser parser = new ScenarioParser("var x = 15;");
    parser.readStatement();
    assertEquals(15f, parser.variables.get("x"), 0.0001);
    
    parser = new ScenarioParser("var myVariable = -(3+3);");
    parser.readStatement();
    assertEquals(-6f, parser.variables.get("myVariable"), 0.0001);
    
    parser = new ScenarioParser("var var = -var;");
    parser.variables.put("var", 42f);
    parser.readStatement();
    assertEquals(-42f, parser.variables.get("var"), 0.0001);
}