/*
 *  test_delay_exchange.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_delay_exchange - check that delay extrema are exchanged correctly

Synopsis: nest_indirect test_delay_exchange.sli -> compare results for different numbers of jobs 

Description:
This tests that creating a single connection (on a single process) will properly set the delay
extrema on all processes.

Author:  November 2014, Plesser
SeeAlso: unittest::distributed_collect_assert_or_die
*/

(unittest) run
/unittest using

[4]                                      
{                                            
  ResetKernel
  /n /iaf_neuron Create def
  [n] [n] /one_to_one << /model /static_synapse /delay 0.5 >> Connect
  [n] [n] /one_to_one << /model /static_synapse /delay 2.5 >> Connect
  0 [[/min_delay /max_delay]] get [0.5 2.5] pstack eq
}
distributed_collect_assert_or_die   


