title: Detect If Two Integers Have Opposite Signs
signature: fun detectIfTwoIntegersHaveOppositeSigns(x: Int, y: 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(x: Int, y: Int, expected:Boolean):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(x, y), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(59, -99, true)
      println("TEST-0...${result}")
      
      result = driver(-20, -21, false)
      println("TEST-1...${result}")
      
      result = driver(-100, 79, true)
      println("TEST-2...${result}")
      
      result = driver(54, -49, true)
      println("TEST-3...${result}")
      
      result = driver(-16, 16, true)
      println("TEST-4...${result}")
      
      result = driver(-23, -68, false)
      println("TEST-5...${result}")
      
      result = driver(93, 37, false)
      println("TEST-6...${result}")
      
      result = driver(24, -61, true)
      println("TEST-7...${result}")
      
      result = driver(-8, 69, true)
      println("TEST-8...${result}")
      
      result = driver(29, 10, false)
      println("TEST-9...${result}")
      
          
  }
  
  main()
source_py: def detect_if_two_integers_have_opposite_signs(x, y):
      return ((x ^ y) < 0)
source_cpp: bool detect_if_two_integers_have_opposite_signs(int x, int y) {
    return ( ( x ^ y ) < 0 );
  }