/*
 *  test_max_delay.sli
 *
 *  This file is part of NEST.
 *
 *  Copyright (C) 2004 The NEST Initiative
 *
 *  NEST 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 2 of the License, or
 *  (at your option) any later version.
 *
 *  NEST 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 NEST.  If not, see <http://www.gnu.org/licenses/>.
 *
 */


/* BeginDocumentation
   Name: testsuite::test_max_delay - sli script to test whether max_delay is updated correctly

   Synopsis: (test_max_delay) run

   Description:
   This script tests whether max_delay is updated correctly. It does this by checking
   whether the value is updated correctly in the static_synapse and in the root node.

   FirstVersion: July 2007
   Author: Eppler
 */

/unittest (6335) require
/unittest using

/delay 123.4 def

/iaf_neuron Create 
/iaf_neuron Create 
1.0 delay Connect

{ /static_synapse GetDefaults /max_delay get delay eq } assert_or_die
{ 0 GetStatus /max_delay get delay eq } assert_or_die

endusing