package com.leetcode.oj;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

public class TwoSumTest {

    TwoSum twoSum = new TwoSum();

    @Test
    public void testCase1() throws Exception {
        int[] input = {2, 2, 7, 3, 8, 1, 5, 15};
        int target = 13;
        for (int i : input) {
            twoSum.add(i);
        }
        assertTrue(twoSum.find(target));
    }
}