package org.verdictdb.core.querying;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import java.util.HashMap;
import java.util.Map;

import org.junit.Test;

public class ExecutableNodeBaseTest {

  @Test
  public void testEquals() {
    ExecutableNodeBase a = new ExecutableNodeBase(-1);
    ExecutableNodeBase b = a;
    assertEquals(b, a);
  }
  
  @Test
  public void testContains() {
    Map<ExecutableNodeBase, Integer> mymap = new HashMap<>();
    ExecutableNodeBase a = new ExecutableNodeBase(-1);
    mymap.put(a, 3);
    assertTrue(mymap.containsKey(a));
  }

}
