title: Check Whether Triangle Valid Not Sides Given
signature: function check_whether_triangle_valid_not_sides_given(a, b, c)
source_py: def check_whether_triangle_valid_not_sides_given(a, b, c):
      if (((a + b) <= c) or ((a + c) <= b) or ((b + c) <= a)):
          return False
      else:
          return True
source_cpp: bool check_whether_triangle_valid_not_sides_given(int a, int b, int c) {
    if ( a + b <= c || a + c <= b || b + c <= a ) return false;
    else return true;
  }
question_info.entry_fn_name: check_whether_triangle_valid_not_sides_given
question_info.entry_cls_name: Solution
question_info.test_case_ids: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
question_info.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(a, b, c, expected)
      local exec_result;
      local status, error_msg = pcall(function () 
          exec_result=PLACEHOLDER_FN_NAME(a, b, c) 
      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(29, 19, 52, false)
      print(string.format("TEST-0...%s",result))
  
      result = driver(83, 34, 49, false)
      print(string.format("TEST-1...%s",result))
  
      result = driver(48, 14, 65, false)
      print(string.format("TEST-2...%s",result))
  
      result = driver(59, 12, 94, false)
      print(string.format("TEST-3...%s",result))
  
      result = driver(56, 39, 22, true)
      print(string.format("TEST-4...%s",result))
  
      result = driver(68, 85, 9, false)
      print(string.format("TEST-5...%s",result))
  
      result = driver(63, 36, 41, true)
      print(string.format("TEST-6...%s",result))
  
      result = driver(95, 34, 37, false)
      print(string.format("TEST-7...%s",result))
  
      result = driver(2, 90, 27, false)
      print(string.format("TEST-8...%s",result))
  
      result = driver(11, 16, 1, false)
      print(string.format("TEST-9...%s",result))
  
  end
  
  main()
question_info.test_list: [{"idx": 0, "outputs": false, "inputs": {"a": 29, "b": 19, "c": 52}}, {"idx": 1, "outputs": false, "inputs": {"a": 83, "b": 34, "c": 49}}, {"idx": 2, "outputs": false, "inputs": {"a": 48, "b": 14, "c": 65}}, {"idx": 3, "outputs": false, "inputs": {"a": 59, "b": 12, "c": 94}}, {"idx": 4, "outputs": true, "inputs": {"a": 56, "b": 39, "c": 22}}, {"idx": 5, "outputs": false, "inputs": {"a": 68, "b": 85, "c": 9}}, {"idx": 6, "outputs": true, "inputs": {"a": 63, "b": 36, "c": 41}}, {"idx": 7, "outputs": false, "inputs": {"a": 95, "b": 34, "c": 37}}, {"idx": 8, "outputs": false, "inputs": {"a": 2, "b": 90, "c": 27}}, {"idx": 9, "outputs": false, "inputs": {"a": 11, "b": 16, "c": 1}}]