title: Smallest Of Three Integers Without Comparison Operators 1
signature: function smallest_of_three_integers_without_comparison_operators_1(x, y, z)
test_code: 
  
  -- SOLUTION CODE
  -- ============================================
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  function isCorrect(actual, expected)
      if type(expected) ~= type(actual) then
          return false
      end
      
      if type(expected) == 'table' then
          for k,v_expected in pairs(expected) do
              
              if actual[k] == nil then
                  return false
              end
              local v_actual = actual[k]
              if not isCorrect(v_actual, v_expected) then
                  return false
              end
              actual[k]=nil
          end
      
          if next(actual) then 
              return false
          end
          return true
      else
          return actual == expected
      end
  end
  
  function validateSolution(actual, expected)
      return isCorrect(actual,expected)
  end
  
  function driver(x, y, z, expected)
      local exec_result;
      local status, error_msg = pcall(function () 
          exec_result=PLACEHOLDER_FN_NAME(x, y, z) 
      end)
      if status then
          if validateSolution(exec_result,expected) then
              return "PASSED"
          end
          return "FAILED"
      else
          return string.format("ERROR=%s",string.gsub(error_msg,".*:[%d]+: ",""))
      end
  end
      
  function main()
      result = driver(48, 63, 56, 56)
      print(string.format("TEST-0...%s",result))
  
      result = driver(11, 55, 84, 84)
      print(string.format("TEST-1...%s",result))
  
      result = driver(50, 89, 96, 96)
      print(string.format("TEST-2...%s",result))
  
      result = driver(21, 71, 74, 74)
      print(string.format("TEST-3...%s",result))
  
      result = driver(94, 39, 42, 42)
      print(string.format("TEST-4...%s",result))
  
      result = driver(22, 44, 86, 86)
      print(string.format("TEST-5...%s",result))
  
      result = driver(3, 41, 68, 68)
      print(string.format("TEST-6...%s",result))
  
      result = driver(67, 62, 94, 94)
      print(string.format("TEST-7...%s",result))
  
      result = driver(59, 2, 83, 83)
      print(string.format("TEST-8...%s",result))
  
      result = driver(50, 11, 1, 1)
      print(string.format("TEST-9...%s",result))
  
  end
  
  main()
source_py: def smallest_of_three_integers_without_comparison_operators_1(x, y, z):
      if (not (y / x)):
          return (y if (not (y / z)) else z)
      return (x if (not (x / z)) else z)
source_cpp: int smallest_of_three_integers_without_comparison_operators_1(int x, int y, int z) {
    if ( ! ( y / x ) ) return ( ! ( y / z ) ) ? y : z;
    return ( ! ( x / z ) ) ? x : z;
  }