test/unit/bio/db/pdb/test_pdb.rb in bio-1.0.0 vs test/unit/bio/db/pdb/test_pdb.rb in bio-1.1.0

- old
+ new

@@ -2,31 +2,14 @@ # = test/unit/bio/db/pdb/test_pdb.rb - Unit test for Bio::PDB classes # # Copyright:: Copyright (C) 2006 # Naohisa Goto <ng@bioruby.org> # -# License:: LGPL +# License:: The Ruby License # -# $Id: test_pdb.rb,v 1.1 2006/01/26 16:06:03 ngoto Exp $ +# $Id: test_pdb.rb,v 1.3 2007/04/05 23:35:43 trevor Exp $ # -#-- -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library 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 -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -#++ -# -# require 'pathname' libpath = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 4, 'lib')).cleanpath.to_s $:.unshift(libpath) unless $:.include?(libpath) @@ -55,11 +38,11 @@ def test_serial assert_equal(154, @atom.serial) end def test_name - assert_equal(' CG2', @atom.name) + assert_equal('CG2', @atom.name) end def test_altLoc assert_equal('B', @atom.altLoc) end @@ -75,11 +58,11 @@ def test_resSeq assert_equal(25, @atom.resSeq) end def test_iCode - assert_equal(' ', @atom.iCode) + assert_equal('', @atom.iCode) end def test_x assert_in_delta(29.909, @atom.x, Float::EPSILON) end @@ -99,18 +82,18 @@ def test_tempFactor assert_in_delta(13.25, @atom.tempFactor, Float::EPSILON) end def test_segID - assert_equal('A1 ', @atom.segID) + assert_equal('A1', @atom.segID) end def test_element - assert_equal(' C', @atom.element) + assert_equal('C', @atom.element) end def test_charge - assert_equal(' ', @atom.charge) + assert_equal('', @atom.charge) end def test_xyz assert_equal(Bio::PDB::Coordinate[ "29.909".to_f,