title: Detect If Two Integers Have Opposite Signs
signature: function detectIfTwoIntegersHaveOppositeSigns($x, $y) {
test_code: <?php
  
  
  // SOLUTION CODE 
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function validateSolution($actual, $expected){
      return serialize($actual) == serialize($expected);
  }
  
  function driver($x, $y, $expected){
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME($x, $y), $expected)){
          return "PASSED";
        }
        return "FAILED";
      }
      catch (Exception $exception_obj) {
        return get_class($exception_obj);
      }
  }
  
  function main(){
      printf("TEST-0...%s\n",driver(
        59, -99, 
        true));
      
      printf("TEST-1...%s\n",driver(
        -20, -21, 
        false));
      
      printf("TEST-2...%s\n",driver(
        -100, 79, 
        true));
      
      printf("TEST-3...%s\n",driver(
        54, -49, 
        true));
      
      printf("TEST-4...%s\n",driver(
        -16, 16, 
        true));
      
      printf("TEST-5...%s\n",driver(
        -23, -68, 
        false));
      
      printf("TEST-6...%s\n",driver(
        93, 37, 
        false));
      
      printf("TEST-7...%s\n",driver(
        24, -61, 
        true));
      
      printf("TEST-8...%s\n",driver(
        -8, 69, 
        true));
      
      printf("TEST-9...%s\n",driver(
        29, 10, 
        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 );
  }