view scripts/testfun/__printf_assert__.m @ 24186:422814bf8b41

Use double underscores around global variables to avoid namespace conflicts. * __printf_assert__.m, __prog_output_assert__.m: Change global variable "_assert_printf" to "__assert_printf__".
author Rik <rik@octave.org>
date Sun, 29 Oct 2017 21:01:32 -0700
parents 092078913d54
children 194eb4bd202b
line wrap: on
line source

## Copyright (C) 2005-2017 David Bateman
##
## This file is part of Octave.
##
## Octave is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3 of the License, or
## (at your option) any later version.
##
## Octave is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Octave; see the file COPYING.  If not, see
## <http://www.gnu.org/licenses/>.

## -*- texinfo -*-
## @deftypefn {} {} __printf_assert__ (@dots{})
## Undocumented internal function.
## @end deftypefn

function __printf_assert__ (varargin)
  global __assert_printf__ = "";

  __assert_printf__ = cat (2, __assert_printf__, sprintf (varargin{:}));

endfunction


## No test coverage for internal function.  It is tested through calling fcn.
%!assert (1)