Index: tests/regression/Makefile.am
===================================================================
--- tests/regression/Makefile.am	(revision 557b3979460102cb0f1b516c9366d6a163eb3620)
+++ tests/regression/Makefile.am	(revision 9a1e35cf043e51e1d12ecec3a0e8dedf7f0e7ee8)
@@ -133,4 +133,5 @@
 	$(srcdir)/Molecules/LinearInterpolationofTrajectories/testsuite-molecules-linear-interpolation-of-trajectories.at \
 	$(srcdir)/Molecules/Remove/testsuite-molecules-remove.at \
+	$(srcdir)/Molecules/RotateAroundBond/testsuite-molecules-rotate-around-bond.at \
 	$(srcdir)/Molecules/RotateAroundOrigin/testsuite-molecules-rotate-around-origin.at \
 	$(srcdir)/Molecules/RotateAroundSelf/testsuite-molecules-rotate-around-self.at \
Index: tests/regression/Molecules/RotateAroundBond/post/test-195-true.pdb
===================================================================
--- tests/regression/Molecules/RotateAroundBond/post/test-195-true.pdb	(revision 9a1e35cf043e51e1d12ecec3a0e8dedf7f0e7ee8)
+++ tests/regression/Molecules/RotateAroundBond/post/test-195-true.pdb	(revision 9a1e35cf043e51e1d12ecec3a0e8dedf7f0e7ee8)
@@ -0,0 +1,18 @@
+REMARK created by molecuilder on Wed Mar 22 16:38:34 2017, time step 0
+ATOM      1 C01 0non 01          9.300  10.000  10.000  0.00  0.00           C 0
+ATOM      2 C02 0non 01         10.700  10.000  10.000  0.00  0.00           C 0
+ATOM      3 H01 0non 01          8.902   8.913   9.709  0.00  0.00           H 0
+ATOM      4 H02 0non 01          8.902  10.795   9.205  0.00  0.00           H 0
+ATOM      5 H03 0non 01          8.902  10.291  11.086  0.00  0.00           H 0
+ATOM      6 H04 0non 01         11.098  11.125  10.000  0.00  0.00           H 0
+ATOM      7 H05 0non 01         11.098   9.438   9.026  0.00  0.00           H 0
+ATOM      8 H06 0non 01         11.098   9.438  10.974  0.00  0.00           H 0
+CONECT    1    3    2    5    4                                                 
+CONECT    2    1    6    8    7                                                 
+CONECT    3    1                                                                
+CONECT    4    1                                                                
+CONECT    5    1                                                                
+CONECT    6    2                                                                
+CONECT    7    2                                                                
+CONECT    8    2                                                                
+END
Index: tests/regression/Molecules/RotateAroundBond/post/test-90-true.pdb
===================================================================
--- tests/regression/Molecules/RotateAroundBond/post/test-90-true.pdb	(revision 9a1e35cf043e51e1d12ecec3a0e8dedf7f0e7ee8)
+++ tests/regression/Molecules/RotateAroundBond/post/test-90-true.pdb	(revision 9a1e35cf043e51e1d12ecec3a0e8dedf7f0e7ee8)
@@ -0,0 +1,18 @@
+REMARK created by molecuilder on Wed Mar 22 16:37:10 2017, time step 0
+ATOM      1 C01 0non 01          9.300  10.000  10.000  0.00  0.00           C 0
+ATOM      2 C02 0non 01         10.700  10.000  10.000  0.00  0.00           C 0
+ATOM      3 H01 0non 01          8.902  10.000  11.125  0.00  0.00           H 0
+ATOM      4 H02 0non 01          8.902   9.026   9.438  0.00  0.00           H 0
+ATOM      5 H03 0non 01          8.902  10.974   9.438  0.00  0.00           H 0
+ATOM      6 H04 0non 01         11.098  11.125  10.000  0.00  0.00           H 0
+ATOM      7 H05 0non 01         11.098   9.438   9.026  0.00  0.00           H 0
+ATOM      8 H06 0non 01         11.098   9.438  10.974  0.00  0.00           H 0
+CONECT    1    3    2    5    4                                                 
+CONECT    2    1    6    8    7                                                 
+CONECT    3    1                                                                
+CONECT    4    1                                                                
+CONECT    5    1                                                                
+CONECT    6    2                                                                
+CONECT    7    2                                                                
+CONECT    8    2                                                                
+END
Index: tests/regression/Molecules/RotateAroundBond/post/test-95-false.pdb
===================================================================
--- tests/regression/Molecules/RotateAroundBond/post/test-95-false.pdb	(revision 9a1e35cf043e51e1d12ecec3a0e8dedf7f0e7ee8)
+++ tests/regression/Molecules/RotateAroundBond/post/test-95-false.pdb	(revision 9a1e35cf043e51e1d12ecec3a0e8dedf7f0e7ee8)
@@ -0,0 +1,18 @@
+REMARK created by molecuilder on Wed Mar 22 16:38:48 2017, time step 0
+ATOM      1 C01 0non 01          9.300  10.000  10.000  0.00  0.00           C 0
+ATOM      2 C02 0non 01         10.700  10.000  10.000  0.00  0.00           C 0
+ATOM      3 H01 0non 01          8.902  11.125  10.000  0.00  0.00           H 0
+ATOM      4 H02 0non 01          8.902   9.438  10.974  0.00  0.00           H 0
+ATOM      5 H03 0non 01          8.902   9.438   9.026  0.00  0.00           H 0
+ATOM      6 H04 0non 01         11.098   9.902  11.121  0.00  0.00           H 0
+ATOM      7 H05 0non 01         11.098  11.019   9.525  0.00  0.00           H 0
+ATOM      8 H06 0non 01         11.098   9.079   9.355  0.00  0.00           H 0
+CONECT    1    3    2    5    4                                                 
+CONECT    2    1    6    8    7                                                 
+CONECT    3    1                                                                
+CONECT    4    1                                                                
+CONECT    5    1                                                                
+CONECT    6    2                                                                
+CONECT    7    2                                                                
+CONECT    8    2                                                                
+END
Index: tests/regression/Molecules/RotateAroundBond/pre/test.pdb
===================================================================
--- tests/regression/Molecules/RotateAroundBond/pre/test.pdb	(revision 9a1e35cf043e51e1d12ecec3a0e8dedf7f0e7ee8)
+++ tests/regression/Molecules/RotateAroundBond/pre/test.pdb	(revision 9a1e35cf043e51e1d12ecec3a0e8dedf7f0e7ee8)
@@ -0,0 +1,18 @@
+REMARK created by molecuilder on Wed Mar 22 16:02:29 2017, time step 0
+ATOM      1 C01 0non 01          9.300  10.000  10.000  0.00  0.00           C 0
+ATOM      2 C02 0non 01         10.700  10.000  10.000  0.00  0.00           C 0
+ATOM      3 H01 0non 01          8.902  11.125  10.000  0.00  0.00           H 0
+ATOM      4 H02 0non 01          8.902   9.438  10.974  0.00  0.00           H 0
+ATOM      5 H03 0non 01          8.902   9.438   9.026  0.00  0.00           H 0
+ATOM      6 H04 0non 01         11.098  11.125  10.000  0.00  0.00           H 0
+ATOM      7 H05 0non 01         11.098   9.438   9.026  0.00  0.00           H 0
+ATOM      8 H06 0non 01         11.098   9.438  10.974  0.00  0.00           H 0
+CONECT    1    3    2    5    4                                                 
+CONECT    2    6    8    7    1                                                 
+CONECT    3    1                                                                
+CONECT    4    1                                                                
+CONECT    5    1                                                                
+CONECT    6    2                                                                
+CONECT    7    2                                                                
+CONECT    8    2                                                                
+END
Index: tests/regression/Molecules/RotateAroundBond/testsuite-molecules-rotate-around-bond.at
===================================================================
--- tests/regression/Molecules/RotateAroundBond/testsuite-molecules-rotate-around-bond.at	(revision 9a1e35cf043e51e1d12ecec3a0e8dedf7f0e7ee8)
+++ tests/regression/Molecules/RotateAroundBond/testsuite-molecules-rotate-around-bond.at	(revision 9a1e35cf043e51e1d12ecec3a0e8dedf7f0e7ee8)
@@ -0,0 +1,77 @@
+#
+#    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 <http://www.gnu.org/licenses/>.
+#
+### Rotate around bond
+
+AT_SETUP([Molecules - Rotate around bond])
+AT_KEYWORDS([molecules rotate-around-bond])
+
+file=test-90-true.pdb
+AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundBond/pre/test.pdb $file], 0)
+AT_CHECK([chmod u+w $file], 0)
+AT_CHECK([../../molecuilder -i $file --select-atom-by-element C --rotate-around-bond 90.], 0, [stdout], [stderr])
+AT_CHECK([diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundBond/post/$file], 0, [ignore], [ignore])
+
+file=test-195-true.pdb
+AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundBond/pre/test.pdb $file], 0)
+AT_CHECK([chmod u+w $file], 0)
+AT_CHECK([../../molecuilder -i $file --select-atom-by-element C --rotate-around-bond 195.], 0, [stdout], [stderr])
+AT_CHECK([diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundBond/post/$file], 0, [ignore], [ignore])
+
+file=test-95-false.pdb
+AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundBond/pre/test.pdb $file], 0)
+AT_CHECK([chmod u+w $file], 0)
+AT_CHECK([../../molecuilder -i $file --select-atom-by-element C --rotate-around-bond 95. --bondside 0], 0, [stdout], [stderr])
+AT_CHECK([diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundBond/post/$file], 0, [ignore], [ignore])
+
+AT_CLEANUP
+
+
+AT_SETUP([Molecules - Rotate around bond with Undo])
+AT_KEYWORDS([molecules rotate-around-bond undo])
+
+file=test.pdb
+AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundBond/pre/test.pdb $file], 0)
+AT_CHECK([chmod u+w $file], 0)
+AT_CHECK([../../molecuilder -i $file --select-atom-by-element C --rotate-around-bond 90. --undo], 0, [stdout], [stderr])
+AT_CHECK([diff -I '.*reated by molecuilder.*' -I 'CONECT.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundBond/pre/test.pdb], 0, [ignore], [ignore])
+
+file=test-95-false.pdb
+AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundBond/pre/test.pdb $file], 0)
+AT_CHECK([chmod u+w $file], 0)
+AT_CHECK([../../molecuilder -i $file --select-atom-by-element C --rotate-around-bond 95. --bondside 0 --undo], 0, [stdout], [stderr])
+AT_CHECK([diff -I '.*reated by molecuilder.*' -I 'CONECT.*'  $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundBond/pre/test.pdb], 0, [ignore], [ignore])
+
+AT_CLEANUP
+
+
+AT_SETUP([Molecules - Rotate around bond with Redo])
+AT_KEYWORDS([molecules rotate-around-bond redo])
+
+file=test-90-true.pdb
+AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundBond/pre/test.pdb $file], 0)
+AT_CHECK([chmod u+w $file], 0)
+AT_CHECK([../../molecuilder -i $file --select-atom-by-element C --rotate-around-bond 90. --undo --redo], 0, [stdout], [stderr])
+AT_CHECK([diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundBond/post/$file], 0, [ignore], [ignore])
+
+file=test-95-false.pdb
+AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundBond/pre/test.pdb $file], 0)
+AT_CHECK([chmod u+w $file], 0)
+AT_CHECK([../../molecuilder -i $file --select-atom-by-element C --rotate-around-bond 95. --bondside 0 --undo --redo], 0, [stdout], [stderr])
+AT_CHECK([diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundBond/post/$file], 0, [ignore], [ignore])
+
+AT_CLEANUP
Index: tests/regression/Molecules/testsuite-molecules.at
===================================================================
--- tests/regression/Molecules/testsuite-molecules.at	(revision 557b3979460102cb0f1b516c9366d6a163eb3620)
+++ tests/regression/Molecules/testsuite-molecules.at	(revision 9a1e35cf043e51e1d12ecec3a0e8dedf7f0e7ee8)
@@ -60,4 +60,7 @@
 m4_include([Molecules/RotateToPrincipalAxisSystem/testsuite-molecules-rotate-to-principal-axis-system.at])
 
+# rotate around one of its bond
+m4_include([Molecules/RotateAroundBond/testsuite-molecules-rotate-around-bond.at])
+
 # Rotate around origin
 m4_include([Molecules/RotateAroundOrigin/testsuite-molecules-rotate-around-origin.at])
