]> git.donarmstrong.com Git - biopieces.git/commitdiff
worked on unit tests for sam.rb
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Tue, 23 Aug 2011 15:14:06 +0000 (15:14 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Tue, 23 Aug 2011 15:14:06 +0000 (15:14 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1494 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/lib/maasha/sam.rb

index f29e6219fb72cf12ddbfbdeeeb3b1b4f1424218c..900df867d8a70166f91b9a9cfc5d616e08b7f27f 100644 (file)
@@ -334,17 +334,17 @@ class Sam < Filesys
 
   # Method to check tlen.
   def check_tlen(tlen)
-    raise SamError, "Bad tlen: #{tlen}"   unless (-2**29 + 1 .. 2**29 - 1).include? tlen
+    raise SamError, "Bad tlen: #{tlen}" unless (-2**29 + 1 .. 2**29 - 1).include? tlen
   end
 
   # Method to check seq.
   def check_seq(seq)
-    raise SamError, "Bad seq: #{seq}"     unless seq  =~ /^(\*|[A-Za-z=.]+)$/
+    raise SamError, "Bad seq: #{seq}" unless seq  =~ /^(\*|[A-Za-z=.]+)$/
   end
 
   # Method to check qual.
   def check_qual(qual)
-    raise SamError, "Bad qual: #{qual}"   unless qual =~ /^[!-~]+$/
+    raise SamError, "Bad qual: #{qual}" unless qual =~ /^[!-~]+$/
   end
 end