1# This file is part of Eclat -*- Autotest -*- 2# Copyright (C) 2012-2018 Sergey Poznyakoff 3# 4# Eclat is free software; you can redistribute it and/or modify 5# it under the terms of the GNU General Public License as published by 6# the Free Software Foundation; either version 3, or (at your option) 7# any later version. 8# 9# Eclat is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY; without even the implied warranty of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12# GNU General Public License for more details. 13# 14# You should have received a copy of the GNU General Public License 15# along with Eclat. If not, see <http://www.gnu.org/licenses/>. 16 17AT_SETUP([Node equal]) 18AT_KEYWORDS([forlan compare comp comp00]) 19 20AT_DATA([input],[ 21if (.root.x == .root.y) print("PASS\n"); else print("FAIL\n"); 22]) 23 24AT_CHECK([tforlan -s input - <<EOT 25<?xml version="1.0" encoding="UTF-8"?> 26<root> 27 <x>X</x> 28 <y>X</y> 29</root> 30EOT 31 32tforlan -s input - <<EOT 33<?xml version="1.0" encoding="UTF-8"?> 34<root> 35 <x>X</x> 36 <y>Y</y> 37</root> 38EOT 39 40tforlan -s input - <<EOT 41<?xml version="1.0" encoding="UTF-8"?> 42<root> 43 <x>X</x> 44</root> 45EOT 46 47tforlan -s input - <<EOT 48<?xml version="1.0" encoding="UTF-8"?> 49<root> 50 <empty/> 51</root> 52EOT], 53[0], 54[PASS 55FAIL 56FAIL 57PASS 58]) 59 60AT_CLEANUP 61