title: Pythagorean Quadruple
signature: pythagorean_quadruple <- function(a, b, c, d) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(a, b, c, d, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(a, b, c, d), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          1L, 1L, 1L, 3L, 
          FALSE
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          3L, 2L, 5L, 38L, 
          FALSE
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          0L, 0L, 0L, 0L, 
          TRUE
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          -1L, -1L, -1L, 1L, 
          FALSE
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          82L, 79L, 6L, 59L, 
          FALSE
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          14L, 57L, 35L, 29L, 
          FALSE
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          6L, 96L, 45L, 75L, 
          FALSE
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          13L, 7L, 3L, 63L, 
          FALSE
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          96L, 65L, 72L, 93L, 
          FALSE
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          70L, 33L, 6L, 2L, 
          FALSE
      )))
  
  }
  
  main()
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;
  }