function test_suite = test_graphDiameter
%TEST_GRAPHDIAMETER  One-line description here, please.
%
%   output = test_graphDiameter(input)
%
%   Example
%   testGraphDiameter
%
%   See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2011-05-19,    using Matlab 7.9.0.529 (R2009b)
% Copyright 2011 INRA - Cepia Software Platform.


test_suite = functiontests(localfunctions); 

function testGraph02(testCase) %#ok<*DEFNU>

[nodes, edges] = createTestGraph02;
diam = graphDiameter(nodes, edges);

exp = 6;
testCase.assertEqual(exp, diam);

