title: Detect If Two Integers Have Opposite Signs
signature: detectIfTwoIntegersHaveOppositeSigns :: Integer -> Integer -> Bool
  detectIfTwoIntegersHaveOppositeSigns x y = 
test_code: import Text.Printf
  import Control.Exception (catch, SomeException)
  import Data.Typeable
  import qualified Data.List as List
  import qualified Data.Map as Map
  import qualified Data.Set as Set
  
  -- SOLUTION CODE
  -- ============================================
  
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  validateSolution :: Bool -> Bool -> Bool
  validateSolution actual expected = do
      actual == expected
  
  
  driver :: Integer -> Integer -> Bool -> String
  driver x y expected = do
      if (validateSolution (PLACEHOLDER_FN_NAME x y) expected)
          then "PASSED"
      else "FAILED"
  
  main = do
      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) )
  
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 );
  }