title: Detect If Two Integers Have Opposite Signs
signature: fun detectIfTwoIntegersHaveOppositeSigns(x: Int, y: Int): Boolean {
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 );
  }
question_info.test_list: [{"idx": 0, "outputs": true, "inputs": {"x": 59, "y": -99}}, {"idx": 1, "outputs": false, "inputs": {"x": -20, "y": -21}}, {"idx": 2, "outputs": true, "inputs": {"x": -100, "y": 79}}, {"idx": 3, "outputs": true, "inputs": {"x": 54, "y": -49}}, {"idx": 4, "outputs": true, "inputs": {"x": -16, "y": 16}}, {"idx": 5, "outputs": false, "inputs": {"x": -23, "y": -68}}, {"idx": 6, "outputs": false, "inputs": {"x": 93, "y": 37}}, {"idx": 7, "outputs": true, "inputs": {"x": 24, "y": -61}}, {"idx": 8, "outputs": true, "inputs": {"x": -8, "y": 69}}, {"idx": 9, "outputs": false, "inputs": {"x": 29, "y": 10}}]
question_info.extension: kts
question_info.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()
question_info.entry_fn_name: detectIfTwoIntegersHaveOppositeSigns
question_info.entry_cls_name: Solution
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: kotlinc -script __FILENAME__ -no-reflect -nowarn