Horizontal Line Test - The horizontal line test is used in the same way. Horizontal Line Test : The function y = f(x) is a function if it passes the vertical line test.