mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Update to ruby/spec@8d74d49
This commit is contained in:
		
							parent
							
								
									c940397116
								
							
						
					
					
						commit
						d80e44deec
					
				
					 157 changed files with 581 additions and 543 deletions
				
			
		|  | @ -19,6 +19,12 @@ describe "BigDecimal#to_s" do | |||
|     @bigdec.to_s.should =~ /^0\.[0-9]*e[0-9]*$/ | ||||
|   end | ||||
| 
 | ||||
|   it "does not add an exponent for zero values" do | ||||
|     BigDecimal("0").to_s.should == "0.0" | ||||
|     BigDecimal("+0").to_s.should == "0.0" | ||||
|     BigDecimal("-0").to_s.should == "-0.0" | ||||
|   end | ||||
| 
 | ||||
|   it "takes an optional argument" do | ||||
|     lambda {@bigdec.to_s("F")}.should_not raise_error() | ||||
|   end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benoit Daloze
						Benoit Daloze