| 1 | ### element database | 
|---|
| 2 |  | 
|---|
| 3 | AT_SETUP([Standard Options - element database]) | 
|---|
| 4 | AT_KEYWORDS([options element-db]) | 
|---|
| 5 |  | 
|---|
| 6 | AT_DATA([elements.db], [[#  Covalent  radius  of  each  element in  Angstroem from  CSD (binding  is: [Rcov(A)+Rcov(B)-t,Rcov(A)+Rcov(B)+t] with  t = 0.4A | 
|---|
| 7 | #Element  Name  Symbol  Period  Group Block Atomic  Number  AtomicWeight  Covalent  Radius  vdW Radius | 
|---|
| 8 | Hydrogen  H 1 1 s 1 1.008 0.23  1.09 | 
|---|
| 9 | Helium  He  1 18  p 2 4.003 1.5 1.4 | 
|---|
| 10 | ]]) | 
|---|
| 11 | AT_CHECK([../../molecuilder -i test.conf -e ./], 0, [stdout], [stderr]) | 
|---|
| 12 | AT_CHECK([grep -E "Using.*as elements database." stdout], 0, [ignore], [ignore]) | 
|---|
| 13 | AT_CHECK([fgrep "Element list loaded successfully." stdout], 0, [ignore], [ignore]) | 
|---|
| 14 | AT_CHECK([fgrep "Something went wrong while parsing the other databases!" stderr], 0, [ignore], [ignore]) | 
|---|
| 15 |  | 
|---|
| 16 | AT_CLEANUP | 
|---|
| 17 |  | 
|---|
| 18 |  | 
|---|
| 19 | AT_SETUP([Standard Options - element database with Undo]) | 
|---|
| 20 | AT_XFAIL_IF([/bin/true]) | 
|---|
| 21 | AT_KEYWORDS([options element-db undo]) | 
|---|
| 22 |  | 
|---|
| 23 | AT_DATA([elements.db], [[#  Covalent  radius  of  each  element in  Angstroem from  CSD (binding  is: [Rcov(A)+Rcov(B)-t,Rcov(A)+Rcov(B)+t] with  t = 0.4A | 
|---|
| 24 | #Element  Name  Symbol  Period  Group Block Atomic  Number  AtomicWeight  Covalent  Radius  vdW Radius | 
|---|
| 25 | Hydrogen  H 1 1 s 1 1.008 0.23  1.09 | 
|---|
| 26 | Helium  He  1 18  p 2 4.003 1.5 1.4 | 
|---|
| 27 | ]]) | 
|---|
| 28 | AT_CHECK([../../molecuilder -i test.conf -e ./ --undo], 0, [stdout], [stderr]) | 
|---|
| 29 | AT_CHECK([grep -E "Using.*as elements database." stdout], 0, [ignore], [ignore]) | 
|---|
| 30 | AT_CHECK([fgrep "Element list loaded successfully." stdout], 0, [ignore], [ignore]) | 
|---|
| 31 | AT_CHECK([fgrep "Something went wrong while parsing the other databases!" stderr], 0, [ignore], [ignore]) | 
|---|
| 32 |  | 
|---|
| 33 | AT_CLEANUP | 
|---|
| 34 |  | 
|---|
| 35 |  | 
|---|
| 36 | AT_SETUP([Standard Options - element database with Redo]) | 
|---|
| 37 | AT_XFAIL_IF([/bin/true]) | 
|---|
| 38 | AT_KEYWORDS([options element-db redo]) | 
|---|
| 39 |  | 
|---|
| 40 | AT_DATA([elements.db], [[#  Covalent  radius  of  each  element in  Angstroem from  CSD (binding  is: [Rcov(A)+Rcov(B)-t,Rcov(A)+Rcov(B)+t] with  t = 0.4A | 
|---|
| 41 | #Element  Name  Symbol  Period  Group Block Atomic  Number  AtomicWeight  Covalent  Radius  vdW Radius | 
|---|
| 42 | Hydrogen  H 1 1 s 1 1.008 0.23  1.09 | 
|---|
| 43 | Helium  He  1 18  p 2 4.003 1.5 1.4 | 
|---|
| 44 | ]]) | 
|---|
| 45 | AT_CHECK([../../molecuilder -i test.conf -e ./ --undo --redo], 0, [stdout], [stderr]) | 
|---|
| 46 | AT_CHECK([grep -E "Using.*as elements database." stdout], 0, [ignore], [ignore]) | 
|---|
| 47 | AT_CHECK([fgrep "Element list loaded successfully." stdout], 0, [ignore], [ignore]) | 
|---|
| 48 | AT_CHECK([fgrep "Something went wrong while parsing the other databases!" stderr], 0, [ignore], [ignore]) | 
|---|
| 49 |  | 
|---|
| 50 | AT_CLEANUP | 
|---|