using LeetCode.Logic;

namespace LeetCode.Tests;

public class TwoSumTests
{
    private readonly TwoSum _sut = new();

    [Theory]
    [InlineData(new[] { 2, 7, 11, 15 }, 9, new[] { 0, 1 })]
    [InlineData(new[] { 3, 2, 4 }, 6, new[] { 1, 2 })]
    [InlineData(new[] { 3, 3 }, 6, new[] { 0, 1 })]
    public void TwoSums(int[] nums, int target, int[]result)
    {
        var actual = _sut.Indices(nums, target);
        Assert.Equal(result, actual);
        
        var text = string.Join(",", actual);
    }
}