title: Detect If Two Integers Have Opposite Signs
signature: detect_if_two_integers_have_opposite_signs <- function(x, y) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(x, y, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(x, y), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          59L, -99L, 
          TRUE
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          -20L, -21L, 
          FALSE
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          -100L, 79L, 
          TRUE
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          54L, -49L, 
          TRUE
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          -16L, 16L, 
          TRUE
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          -23L, -68L, 
          FALSE
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          93L, 37L, 
          FALSE
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          24L, -61L, 
          TRUE
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          -8L, 69L, 
          TRUE
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          29L, 10L, 
          FALSE
      )))
  
  }
  
  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 );
  }