1/* 2 * issue-1610.sli 3 * 4 * This file is part of NEST. 5 * 6 * Copyright (C) 2004 The NEST Initiative 7 * 8 * NEST is free software: you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation, either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * NEST is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with NEST. If not, see <http://www.gnu.org/licenses/>. 20 * 21 */ 22 23 24 /** @BeginDocumentation 25Name: testsuite::issue-1610 26 27Synopsis: (issue-1610) run -> NEST exits if test fails 28 29Description: 30Ensure that comparing primitive and composite NodeCollections does not lead to 31a segmentation fault and gives the correct result. 32 33Author: Håkon Mørk 34FirstVersion: June 2020 35*/ 36 37(unittest) run 38/unittest using 39 40M_ERROR setverbosity 41 42{ 43 ResetKernel 44 45 /prim_nc /iaf_psc_alpha 10 Create def 46 /comp_nc /iaf_psc_exp 5 Create /iaf_psc_alpha 5 Create join def 47 48 prim_nc comp_nc eq not 49 comp_nc prim_nc eq not and 50} 51assert_or_die 52 53endusing 54