title: Pythagorean Quadruple
signature: pythagoreanQuadruple :: Integer -> Integer -> Integer -> Integer -> Bool
  pythagoreanQuadruple a b c d = 
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 -> Integer -> Integer -> Bool -> String
  driver a b c d expected = do
      if (validateSolution (PLACEHOLDER_FN_NAME a b c d) expected)
          then "PASSED"
      else "FAILED"
  
  main = do
      printf "TEST-0...%s\n" (driver (1) (1) (1) (3) (False) )
  
      printf "TEST-1...%s\n" (driver (3) (2) (5) (38) (False) )
  
      printf "TEST-2...%s\n" (driver (0) (0) (0) (0) (True) )
  
      printf "TEST-3...%s\n" (driver (-1) (-1) (-1) (1) (False) )
  
      printf "TEST-4...%s\n" (driver (82) (79) (6) (59) (False) )
  
      printf "TEST-5...%s\n" (driver (14) (57) (35) (29) (False) )
  
      printf "TEST-6...%s\n" (driver (6) (96) (45) (75) (False) )
  
      printf "TEST-7...%s\n" (driver (13) (7) (3) (63) (False) )
  
      printf "TEST-8...%s\n" (driver (96) (65) (72) (93) (False) )
  
      printf "TEST-9...%s\n" (driver (70) (33) (6) (2) (False) )
  
source_py: def pythagorean_quadruple(a, b, c, d):
      sum = (((a * a) + (b * b)) + (c * c))
      if ((d * d) == sum):
          return True
      else:
          return False
source_cpp: bool pythagorean_quadruple(int a, int b, int c, int d) {
    int sum = a * a + b * b + c * c;
    if ( d * d == sum ) return true;
    else return false;
  }