title: Smallest Of Three Integers Without Comparison Operators 1
signature: function smallestOfThreeIntegersWithoutComparisonOperators1(x, y, z) {
test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value) {
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual, expected){
      return convertToString(actual)===convertToString(expected);
  }
  
  function driver(x, y, z, expected){
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(x, y, z),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(48, 63, 56, 56);
    console.log(`TEST-0...${result}`);
  
    result = driver(11, 55, 84, 84);
    console.log(`TEST-1...${result}`);
  
    result = driver(50, 89, 96, 96);
    console.log(`TEST-2...${result}`);
  
    result = driver(21, 71, 74, 74);
    console.log(`TEST-3...${result}`);
  
    result = driver(94, 39, 42, 42);
    console.log(`TEST-4...${result}`);
  
    result = driver(22, 44, 86, 86);
    console.log(`TEST-5...${result}`);
  
    result = driver(3, 41, 68, 68);
    console.log(`TEST-6...${result}`);
  
    result = driver(67, 62, 94, 94);
    console.log(`TEST-7...${result}`);
  
    result = driver(59, 2, 83, 83);
    console.log(`TEST-8...${result}`);
  
    result = driver(50, 11, 1, 1);
    console.log(`TEST-9...${result}`);
  
    process.exit(0);
  };
  
  if (require.main === module) {
    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;
  }