title: Check Line Passes Origin
signature: checkLinePassesOrigin(x1, y1, x2, y2) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(bool actual, bool expected){
      return actual.toString() == expected.toString();
  }
  
  String driver(x1, y1, x2, y2, bool expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(x1, y1, x2, y2), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          1, 28, 2, 56, 
          true)
      }");
  
      print("TEST-1...${driver(
          10, 0, 20, 0, 
          true)
      }");
  
      print("TEST-2...${driver(
          0, 1, 0, 17, 
          true)
      }");
  
      print("TEST-3...${driver(
          1, 1, 10, 10, 
          true)
      }");
  
      print("TEST-4...${driver(
          82, 86, 19, 4, 
          false)
      }");
  
      print("TEST-5...${driver(
          78, 86, 11, 6, 
          false)
      }");
  
      print("TEST-6...${driver(
          13, 46, 33, 33, 
          false)
      }");
  
      print("TEST-7...${driver(
          18, 29, 95, 12, 
          false)
      }");
  
      print("TEST-8...${driver(
          42, 35, 25, 36, 
          false)
      }");
  
      print("TEST-9...${driver(
          29, 17, 45, 35, 
          false)
      }");
  
      return 0;
  }
source_py: def check_line_passes_origin(x1, y1, x2, y2):
      return ((x1 * (y2 - y1)) == (y1 * (x2 - x1)))
source_cpp: bool check_line_passes_origin(int x1, int y1, int x2, int y2) {
    return ( x1 * ( y2 - y1 ) == y1 * ( x2 - x1 ) );
  }