title: Check Line Passes Origin
signature: fun checkLinePassesOrigin(x1: Int, y1: Int, x2: Int, y2: Int): Boolean {
test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Boolean, expected:Boolean):Boolean{
    return actual.equals(expected)
  }
  fun driver(x1: Int, y1: Int, x2: Int, y2: Int, expected:Boolean):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(x1, y1, x2, y2), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(1, 28, 2, 56, true)
      println("TEST-0...${result}")
      
      result = driver(10, 0, 20, 0, true)
      println("TEST-1...${result}")
      
      result = driver(0, 1, 0, 17, true)
      println("TEST-2...${result}")
      
      result = driver(1, 1, 10, 10, true)
      println("TEST-3...${result}")
      
      result = driver(82, 86, 19, 4, false)
      println("TEST-4...${result}")
      
      result = driver(78, 86, 11, 6, false)
      println("TEST-5...${result}")
      
      result = driver(13, 46, 33, 33, false)
      println("TEST-6...${result}")
      
      result = driver(18, 29, 95, 12, false)
      println("TEST-7...${result}")
      
      result = driver(42, 35, 25, 36, false)
      println("TEST-8...${result}")
      
      result = driver(29, 17, 45, 35, false)
      println("TEST-9...${result}")
      
          
  }
  
  main()
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 ) );
  }