title: Detect If Two Integers Have Opposite Signs
signature: detectIfTwoIntegersHaveOppositeSigns(x, y) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(bool actual, bool expected){
      return actual.toString() == expected.toString();
  }
  
  String driver(x, y, bool expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(x, y), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          59, -99, 
          true)
      }");
  
      print("TEST-1...${driver(
          -20, -21, 
          false)
      }");
  
      print("TEST-2...${driver(
          -100, 79, 
          true)
      }");
  
      print("TEST-3...${driver(
          54, -49, 
          true)
      }");
  
      print("TEST-4...${driver(
          -16, 16, 
          true)
      }");
  
      print("TEST-5...${driver(
          -23, -68, 
          false)
      }");
  
      print("TEST-6...${driver(
          93, 37, 
          false)
      }");
  
      print("TEST-7...${driver(
          24, -61, 
          true)
      }");
  
      print("TEST-8...${driver(
          -8, 69, 
          true)
      }");
  
      print("TEST-9...${driver(
          29, 10, 
          false)
      }");
  
      return 0;
  }
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 );
  }