# # MoleCuilder - creates and alters molecular systems # Copyright (C) 2017 Frederik Heber # # This program 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. # # This program 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 this program. If not, see . # ### common stuff to geometry # names are already setup automatically AT_SETUP([Geometry - automatically added geometry names]) AT_KEYWORDS([geometry]) AT_CHECK([../../molecuilder --input-to-vector "zeroVector" --position "0,0,0"], 5, [ignore], [ignore]) AT_CHECK([../../molecuilder --input-to-vector "unitVectorX" --position "1,0,0"], 5, [ignore], [ignore]) AT_CHECK([../../molecuilder --input-to-vector "unitVectorY" --position "0,1,0"], 5, [ignore], [ignore]) AT_CHECK([../../molecuilder --input-to-vector "unitVectorZ" --position "0,0,1"], 5, [ignore], [ignore]) AT_CLEANUP # no names interpretable as vectors and no pure numbers AT_SETUP([Geometry - illegal geometry names]) AT_KEYWORDS([geometry]) AT_CHECK([../../molecuilder --input-to-vector "0,0,0" --position "0,0,0"], 5, [ignore], [ignore]) AT_CHECK([../../molecuilder --input-to-vector "1" --position "1,0,0"], 5, [ignore], [ignore]) AT_CLEANUP