source: tests/regression/WorldTime/StepWorldTime/testsuite-worldtime-step-forward.at@ 0efd21

Fix_ParseParticles_split_forward_backward_Actions
Last change on this file since 0efd21 was 0efd21, checked in by Frederik Heber <heber@…>, 9 years ago

tempcommit: Rewrote step-world-time into two actions.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1#
2# MoleCuilder - creates and alters molecular systems
3# Copyright (C) 2016 Frederik Heber
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
17#
18### step through world time
19
20AT_SETUP([Worldtime - stepping forward])
21AT_KEYWORDS([worldtime step-forward set-world-time])
22
23AT_CHECK([../../molecuilder --step-forward 1], 0, [stdout], [stderr])
24AT_CHECK([fgrep "Current time step is now: 1" stdout], 0, [ignore], [ignore])
25# test default argument
26AT_CHECK([../../molecuilder --step-forward], 0, [stdout], [stderr])
27AT_CHECK([fgrep "Current time step is now: 1" stdout], 0, [ignore], [ignore])
28
29AT_CLEANUP
30
31
32AT_SETUP([Worldtime - stepping forward with Undo])
33AT_KEYWORDS([worldtime step-forward set-world-time undo])
34
35AT_CHECK([../../molecuilder --step-forward 1 --undo], 0, [stdout], [stderr])
36AT_CHECK([fgrep "Current time step is now again: 0" stdout], 0, [ignore], [ignore])
37
38AT_CLEANUP
39
40AT_SETUP([Worldtime - stepping forward with Redo])
41AT_KEYWORDS([worldtime step-forward set-world-time undo redo])
42
43AT_CHECK([../../molecuilder --step-forward 1 --undo --redo], 0, [stdout], [stderr])
44AT_CHECK([fgrep "Current time step is now: 1" stdout], 0, [ignore], [ignore])
45
46AT_CLEANUP
47
48
49
Note: See TracBrowser for help on using the repository browser.