title: Check Line Passes Origin
signature: pub fn check_line_passes_origin(x1: i32, y1: i32, x2: i32, y2: i32) -> bool {
test_code: use std::collections::HashMap;
  use std::collections::HashSet;
  use std::cmp::*;
  use std::collections::*;
  use std::fmt::*; 
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  pub fn validate_solution(actual: bool, expected: bool)->bool{
  return actual==expected
  }
  pub fn driver(x1: i32, y1: i32, x2: i32, y2: i32, expected: bool)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(x1, y1, x2, y2), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        1, 28, 2, 56, 
        true
      ));
      
      println!("TEST-1...{}", driver(
        10, 0, 20, 0, 
        true
      ));
      
      println!("TEST-2...{}", driver(
        0, 1, 0, 17, 
        true
      ));
      
      println!("TEST-3...{}", driver(
        1, 1, 10, 10, 
        true
      ));
      
      println!("TEST-4...{}", driver(
        82, 86, 19, 4, 
        false
      ));
      
      println!("TEST-5...{}", driver(
        78, 86, 11, 6, 
        false
      ));
      
      println!("TEST-6...{}", driver(
        13, 46, 33, 33, 
        false
      ));
      
      println!("TEST-7...{}", driver(
        18, 29, 95, 12, 
        false
      ));
      
      println!("TEST-8...{}", driver(
        42, 35, 25, 36, 
        false
      ));
      
      println!("TEST-9...{}", driver(
        29, 17, 45, 35, 
        false
      ));
      
  }
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 ) );
  }