classdef TestInvertAffineTransform
    %TestInvertAffineTransform

    methods (Static)
        function test_1
            src = [0 1 0; -1 0 1];
            ref = [0 -1 1; 1 0 0];
            dst = cv.invertAffineTransform(src);
            validateattributes(dst, {'numeric'}, {'size',[2 3]});
            assert(all(abs(dst(:) - ref(:)) < 1e-5));
        end

        function test_error_argnum
            try
                cv.invertAffineTransform();
                throw('UnitTest:Fail');
            catch e
                assert(strcmp(e.identifier,'mexopencv:error'));
            end
        end
    end

end
