Ignore:
Timestamp:
Aug 13, 2025, 9:46:30 PM (3 months ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
463bfb
Parents:
bcc29ca
git-author:
Frederik Heber <frederik.heber@…> (08/13/25 08:41:09)
git-committer:
Frederik Heber <frederik.heber@…> (08/13/25 21:46:30)
Message:

FIX: FormatParserStorage did not add parser instance on SetOutput.

  • using the InputAction on an empty file would not write that file using the desired parser (judged from suffix) on exit because the respective was set as desired output but not instantiated (ParserPresent).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/regression/Options/UndoMark/testsuite-options-undo-mark.at

    rbcc29ca r780bfa  
    2626# add an atom prior to undo-mark
    2727AT_CHECK([../../molecuilder -i test-simple-prior.conf --add-atom 1 --domain-position "5,5,5" --set-undo-mark 1 --undo-till-mark], 0, [stdout], [ignore])
    28 AT_CHECK([grep -c "ATOM" test-simple-prior.conf], 1, [ignore], [ignore])
     28AT_CHECK([grep -q "^Ion_Type" test-simple-prior.conf], 0, [ignore], [ignore])
    2929
    3030# add an atom after to undo-mark
    3131AT_CHECK([../../molecuilder -i test-simple-after.conf --set-undo-mark 1 --add-atom 1 --domain-position "5,5,5" --undo-till-mark], 0, [stdout], [ignore])
    32 AT_CHECK([grep -c "ATOM" test-simple-after.conf], 1, [ignore], [ignore])
     32AT_CHECK([grep -q "^Ion_Type" test-simple-after.conf], 1, [ignore], [ignore])
    3333
    34 # add an atom prior to undo-mark reset
    35 AT_CHECK([../../molecuilder  -i test-simple-prior-reset.conf --set-undo-mark 0 --add-atom 1 --domain-position "5,5,5" --select-all-atoms --undo-till-mark], 0, [stdout], [ignore])
    36 AT_CHECK([grep -c "ATOM" test-simple-prior-reset.conf], 1, [ignore], [ignore])
     34# add an atom and select after undo-mark: both undone
     35AT_CHECK([../../molecuilder  -i test-simple-two-undo.conf --set-undo-mark 1 --add-atom 1 --domain-position "5,5,5" --select-all-atoms --undo-till-mark], 0, [stdout], [ignore])
     36AT_CHECK([grep -q "^Ion_Type" test-simple-two-undo.conf], 1, [ignore], [ignore])
    3737
    38 # input file with added atom
     38# input file with added atom: undo all (input has no undo)
    3939AT_CHECK([../../molecuilder --set-undo-mark 1 --input hydrogen.xyz --add-atom 1 --domain-position "5,5,5" --undo-till-mark --select-all-atoms], 0, [stdout], [ignore])
    4040AT_CHECK([grep "0 atoms selected" stdout], 0, [ignore], [ignore])
    4141
    42 # input file with added atom
    43 AT_CHECK([../../molecuilder --input hydrogen.xyz --add-atom 1 --domain-position "5,5,5" --set-undo-mark 0 --undo-till-mark], 0, [stdout], [ignore])
    44 AT_CHECK([grep "Resetting mark" stdout], 0, [ignore], [ignore])
     42# input file with added atom, then undo-mark: nothing undone
     43AT_CHECK([../../molecuilder --input hydrogen.xyz --add-atom 1 --domain-position "5,5,5" --set-undo-mark 1 --undo-till-mark], 0, [stdout], [ignore])
     44AT_CHECK([grep -q "H" hydrogen.xyz], 0, [ignore], [ignore])
    4545
    4646AT_CLEANUP
Note: See TracChangeset for help on using the changeset viewer.