function r8mat_border_add_test ( )

%*****************************************************************************80
%
%% r8mat_border_add_test() tests r8mat_border_add().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 August 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8MAT_BORDER_ADD_TEST\n' );
  fprintf ( 1, '  R8MAT_BORDER_ADD adds a zero border to a matrix.\n' );
 
  m = 4;
  n = 3;

  a = [ ...
    1.0, 2.0, 3.0; ...
    0.0, 2.0, 1.0; ...
    0.0, 4.0, 3.0; ...
    5.0, 6.0, 7.0 ];

  r8mat_print ( m, n, a, '  Matrix A:' );

  m2 = m + 2;
  n2 = n + 2;
  a2 = r8mat_border_add ( m, n, a );

  r8mat_print ( m2, n2, a2, '  Matrix A + border:' );


  return
end
