<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[1968] MacRuby/branches/experimental/spec/frozen</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.macosforge.org/projects/ruby/changeset/1968">1968</a></dd>
<dt>Author</dt> <dd>eloy.de.enige@gmail.com</dd>
<dt>Date</dt> <dd>2009-07-01 16:53:26 -0700 (Wed, 01 Jul 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Updated RubySpec to 8a452e68e5b045a20ce1964fa997f9d691316b1c</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#MacRubybranchesexperimentalspecfrozencorebignumcomparison_specrb">MacRuby/branches/experimental/spec/frozen/core/bignum/comparison_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozencoredirsharedexistsrb">MacRuby/branches/experimental/spec/frozen/core/dir/shared/exists.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozencorefloatcomparison_specrb">MacRuby/branches/experimental/spec/frozen/core/float/comparison_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexComplex_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/Complex_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexabs2_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/abs2_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexabs_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/abs_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexcoerce_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/coerce_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexcomparison_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/comparison_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexdenominator_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/denominator_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexdivide_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/divide_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexequal_value_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/equal_value_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexexponent_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/exponent_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexgeneric_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/generic_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexhash_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/hash_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycompleximag_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/imag_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycompleximage_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/image_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexinspect_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/inspect_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathacos_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/acos_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathacosh_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/acosh_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathasin_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/asin_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathasinh_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/asinh_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathatan2_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/atan2_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathatan_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/atan_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathatanh_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/atanh_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathcos_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/cos_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathcosh_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/cosh_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathexp_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/exp_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathlog10_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/log10_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathlog_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/log_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedacosrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/acos.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedacoshrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/acosh.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedasinrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/asin.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedasinhrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/asinh.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedatanrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/atan.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedatan2rb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/atan2.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedatanhrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/atanh.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedcosrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/cos.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedcoshrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/cosh.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedexprb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/exp.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedlogrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/log.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedlog10rb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/log10.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedsinrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/sin.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedsinhrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/sinh.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedsqrtrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/sqrt.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedtanrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/tan.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedtanhrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/tanh.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsin_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/sin_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsinh_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/sinh_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsqrt_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/sqrt_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathtan_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/tan_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmathtanh_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/math/tanh_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexminus_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/minus_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmodulo_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/modulo_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexmultiply_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/multiply_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexnew_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/new_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexnumerator_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/numerator_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericangle_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/numeric/angle_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericarg_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/numeric/arg_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericconj_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/numeric/conj_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericconjugate_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/numeric/conjugate_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericim_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/numeric/im_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericimag_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/numeric/imag_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericimage_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/numeric/image_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericpolar_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/numeric/polar_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericreal_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/numeric/real_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericsharedargrb">MacRuby/branches/experimental/spec/frozen/library/complex/numeric/shared/arg.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericsharedconjugaterb">MacRuby/branches/experimental/spec/frozen/library/complex/numeric/shared/conjugate.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericsharedimagerb">MacRuby/branches/experimental/spec/frozen/library/complex/numeric/shared/image.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexplus_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/plus_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexpolar_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/polar_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexreal_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/real_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexsharedimagerb">MacRuby/branches/experimental/spec/frozen/library/complex/shared/image.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenlibrarycomplexto_s_specrb">MacRuby/branches/experimental/spec/frozen/library/complex/to_s_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozensharedcomplexabsrb">MacRuby/branches/experimental/spec/frozen/shared/complex/abs.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozensharedcomplexabs2rb">MacRuby/branches/experimental/spec/frozen/shared/complex/abs2.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozensharedcomplexargrb">MacRuby/branches/experimental/spec/frozen/shared/complex/arg.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozensharedcomplexcoercerb">MacRuby/branches/experimental/spec/frozen/shared/complex/coerce.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozensharedcomplexconjugaterb">MacRuby/branches/experimental/spec/frozen/shared/complex/conjugate.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozensharedcomplexdividerb">MacRuby/branches/experimental/spec/frozen/shared/complex/divide.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozensharedcomplexequal_valuerb">MacRuby/branches/experimental/spec/frozen/shared/complex/equal_value.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozentagsmacrubycorefloatcomparison_tagstxt">MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/comparison_tags.txt</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozenupstream">MacRuby/branches/experimental/spec/frozen/upstream</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#MacRubybranchesexperimentalspecfrozencorecomplexmodulo_specrb">MacRuby/branches/experimental/spec/frozen/core/complex/modulo_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozencorecomplexmultiply_specrb">MacRuby/branches/experimental/spec/frozen/core/complex/multiply_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozencorecomplexnumerator_specrb">MacRuby/branches/experimental/spec/frozen/core/complex/numerator_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozencorecomplexplus_specrb">MacRuby/branches/experimental/spec/frozen/core/complex/plus_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozencorecomplexpolar_specrb">MacRuby/branches/experimental/spec/frozen/core/complex/polar_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozencorecomplexreal_specrb">MacRuby/branches/experimental/spec/frozen/core/complex/real_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozencorecomplexto_s_specrb">MacRuby/branches/experimental/spec/frozen/core/complex/to_s_spec.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozensharedcomplexmodulorb">MacRuby/branches/experimental/spec/frozen/shared/complex/modulo.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozensharedcomplexmultiplyrb">MacRuby/branches/experimental/spec/frozen/shared/complex/multiply.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozensharedcomplexnumeratorrb">MacRuby/branches/experimental/spec/frozen/shared/complex/numerator.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozensharedcomplexplusrb">MacRuby/branches/experimental/spec/frozen/shared/complex/plus.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozensharedcomplexpolarrb">MacRuby/branches/experimental/spec/frozen/shared/complex/polar.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozensharedcomplexrealrb">MacRuby/branches/experimental/spec/frozen/shared/complex/real.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozensharedcomplexto_srb">MacRuby/branches/experimental/spec/frozen/shared/complex/to_s.rb</a></li>
<li><a href="#MacRubybranchesexperimentalspecfrozentags19corecomplexmodulo_tagstxt">MacRuby/branches/experimental/spec/frozen/tags/1.9/core/complex/modulo_tags.txt</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="MacRubybranchesexperimentalspecfrozencorebignumcomparison_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/core/bignum/comparison_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/core/bignum/comparison_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/core/bignum/comparison_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -37,7 +37,7 @@
</span><span class="cx">     end
</span><span class="cx"> 
</span><span class="cx">     it &quot;returns 1 when self is negative and other is -Infinity&quot; do
</span><del>-      (-Float::MAX.to_i*2 &lt;=&gt; @inf).should == 1
</del><ins>+      (-Float::MAX.to_i*2 &lt;=&gt; -@inf).should == 1
</ins><span class="cx">     end
</span><span class="cx"> 
</span><span class="cx">     it &quot;returns -1 when self is -Infinity and other is negative&quot; do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozencorecomplexmodulo_specrb"></a>
<div class="addfile"><h4>Added: MacRuby/branches/experimental/spec/frozen/core/complex/modulo_spec.rb (0 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/core/complex/modulo_spec.rb                                (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/core/complex/modulo_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+require File.dirname(__FILE__) + '/../../shared/complex/modulo'
+
+ruby_version_is &quot;1.9&quot; do
+  describe &quot;Complex#% with Complex&quot; do
+    it_behaves_like(:complex_modulo_complex, :%)
+  end
+
+  describe &quot;Complex#% with Integer&quot; do
+    it_behaves_like(:complex_modulo_integer, :%)
+  end
+
+  describe &quot;Complex#% with Object&quot; do
+    it_behaves_like(:complex_modulo_object, :%)
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozencorecomplexmultiply_specrb"></a>
<div class="addfile"><h4>Added: MacRuby/branches/experimental/spec/frozen/core/complex/multiply_spec.rb (0 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/core/complex/multiply_spec.rb                                (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/core/complex/multiply_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+require File.dirname(__FILE__) + '/../../shared/complex/multiply'
+
+ruby_version_is &quot;1.9&quot; do
+
+  describe &quot;Complex#* with Complex&quot; do
+    it_behaves_like(:complex_multiply_complex, :*)
+  end
+
+  describe &quot;Complex#* with Integer&quot; do
+    it_behaves_like(:complex_multiply_integer, :*)
+  end
+
+  describe &quot;Complex#* with Object&quot; do
+    it_behaves_like(:complex_multiply_object, :*)
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozencorecomplexnumerator_specrb"></a>
<div class="addfile"><h4>Added: MacRuby/branches/experimental/spec/frozen/core/complex/numerator_spec.rb (0 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/core/complex/numerator_spec.rb                                (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/core/complex/numerator_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+require File.dirname(__FILE__) + '/../../shared/complex/numerator'
+
+ruby_version_is &quot;1.9&quot; do
+  describe &quot;Complex#numerator&quot; do
+    it_behaves_like(:complex_numerator, :numerator)
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozencorecomplexplus_specrb"></a>
<div class="addfile"><h4>Added: MacRuby/branches/experimental/spec/frozen/core/complex/plus_spec.rb (0 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/core/complex/plus_spec.rb                                (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/core/complex/plus_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+require File.dirname(__FILE__) + '/../../shared/complex/plus'
+
+ruby_version_is &quot;1.9&quot; do
+
+  describe &quot;Complex#+ with Complex&quot; do
+    it_behaves_like(:complex_plus_complex, :+)
+  end
+
+  describe &quot;Complex#+ with Integer&quot; do
+    it_behaves_like(:complex_plus_integer, :+)
+  end
+
+  describe &quot;Complex#+ with Object&quot; do
+    it_behaves_like(:complex_plus_object, :+)
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozencorecomplexpolar_specrb"></a>
<div class="addfile"><h4>Added: MacRuby/branches/experimental/spec/frozen/core/complex/polar_spec.rb (0 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/core/complex/polar_spec.rb                                (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/core/complex/polar_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+require File.dirname(__FILE__) + '/../../shared/complex/polar'
+
+ruby_version_is &quot;1.9&quot; do
+
+  describe &quot;Complex.polar&quot; do
+    it_behaves_like(:complex_polar, :polar)
+  end
+
+  describe &quot;Complex#polar&quot; do
+    it_behaves_like(:complex_polar, :polar)
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozencorecomplexreal_specrb"></a>
<div class="addfile"><h4>Added: MacRuby/branches/experimental/spec/frozen/core/complex/real_spec.rb (0 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/core/complex/real_spec.rb                                (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/core/complex/real_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+require File.dirname(__FILE__) + '/../../shared/complex/real'
+
+ruby_version_is &quot;1.9&quot; do
+  
+  describe &quot;Complex#real&quot; do
+    it_behaves_like(:complex_real, :real)
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozencorecomplexto_s_specrb"></a>
<div class="addfile"><h4>Added: MacRuby/branches/experimental/spec/frozen/core/complex/to_s_spec.rb (0 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/core/complex/to_s_spec.rb                                (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/core/complex/to_s_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+require File.dirname(__FILE__) + '/../../shared/complex/to_s'
+
+ruby_version_is &quot;1.9&quot; do
+
+  describe &quot;Complex#to_s when self's real component is 0&quot; do
+    it_behaves_like(:complex_to_s_0, :to_s)
+  end
+
+  describe &quot;Complex#to_s&quot; do
+    it_behaves_like(:complex_to_s, :to_s)
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozencoredirsharedexistsrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/core/dir/shared/exists.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/core/dir/shared/exists.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/core/dir/shared/exists.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -33,9 +33,9 @@
</span><span class="cx">     Dir.send(@method, dir).should be_true
</span><span class="cx">   end
</span><span class="cx"> 
</span><del>-  it &quot;expands paths&quot; do
</del><ins>+  it &quot;doesn't expand paths&quot; do
</ins><span class="cx">     Dir.send(@method, File.expand_path('~')).should be_true
</span><del>-    Dir.send(@method, '~').should be_true
</del><ins>+    Dir.send(@method, '~').should be_false
</ins><span class="cx">   end
</span><span class="cx"> 
</span><span class="cx">   it &quot;returns false if the argument exists but is a file&quot; do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozencorefloatcomparison_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/core/float/comparison_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/core/float/comparison_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/core/float/comparison_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -25,16 +25,16 @@
</span><span class="cx">       (@inf &lt;=&gt; Float::MAX.to_i*2).should == 1
</span><span class="cx">     end  
</span><span class="cx"> 
</span><del>-    it &quot;returns 1 when self is negative and other is Infinty&quot; do
-      (-Float::MAX.to_i*2 &lt;=&gt; @inf).should == 1
</del><ins>+    it &quot;returns -1 when self is negative and other is Infinty&quot; do
+      (-Float::MAX.to_i*2 &lt;=&gt; @inf).should == -1
</ins><span class="cx">     end  
</span><span class="cx"> 
</span><span class="cx">     it &quot;returns -1 when self is -Infinity and other is negative&quot; do
</span><span class="cx">       (-@inf &lt;=&gt; -Float::MAX.to_i*2).should == -1
</span><span class="cx">     end
</span><span class="cx"> 
</span><del>-    it &quot;returns -1 when self is negative and other is -Infinity&quot; do
-      (-@inf &lt;=&gt; -Float::MAX.to_i*2).should == -1
</del><ins>+    it &quot;returns 1 when self is negative and other is -Infinity&quot; do
+      (-Float::MAX.to_i*2 &lt;=&gt; -@inf).should == 1
</ins><span class="cx">     end
</span><span class="cx">   end
</span><span class="cx"> 
</span><span class="lines">@@ -45,16 +45,16 @@
</span><span class="cx">       (@inf &lt;=&gt; Float::MAX.to_i*2).should == 1
</span><span class="cx">     end  
</span><span class="cx"> 
</span><del>-    it &quot;returns 1 when self is negative and other is Infinty&quot; do
-      (-Float::MAX.to_i*2 &lt;=&gt; @inf).should == 1
</del><ins>+    it &quot;returns -1 when self is negative and other is Infinty&quot; do
+      (-Float::MAX.to_i*2 &lt;=&gt; @inf).should == -1
</ins><span class="cx">     end  
</span><span class="cx"> 
</span><span class="cx">     it &quot;returns -1 when self is -Infinity and other is negative&quot; do
</span><span class="cx">       (-@inf &lt;=&gt; -Float::MAX.to_i*2).should == -1
</span><span class="cx">     end
</span><span class="cx"> 
</span><del>-    it &quot;returns -1 when self is negative and other is -Infinity&quot; do
-      (-@inf &lt;=&gt; -Float::MAX.to_i*2).should == -1
</del><ins>+    it &quot;returns 1 when self is negative and other is -Infinity&quot; do
+      (-Float::MAX.to_i*2 &lt;=&gt; -@inf).should == 1
</ins><span class="cx">     end
</span><span class="cx">   end
</span><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexComplex_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/Complex_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/Complex_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/Complex_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,53 +1,57 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../spec_helper'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><del>-describe &quot;Complex when passed [Complex, Complex]&quot; do
-  it &quot;returns a new Complex number based on the two given numbers&quot; do
-    Complex(Complex(3, 4), Complex(5, 6)).should == Complex.new(3 - 6, 4 + 5)
-    Complex(Complex(1.5, 2), Complex(-5, 6.3)).should == Complex.new(1.5 - 6.3, 2 - 5)
-  end
-end
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
</ins><span class="cx"> 
</span><del>-describe &quot;Complex when passed [Complex]&quot; do
-  it &quot;returns the passed Complex number&quot; do
-    Complex(Complex(1, 2)).should == Complex(1, 2)
-    Complex(Complex(-3.4, bignum_value)).should == Complex(-3.4, bignum_value)
</del><ins>+  require 'complex'
+
+  describe &quot;Complex when passed [Complex, Complex]&quot; do
+    it &quot;returns a new Complex number based on the two given numbers&quot; do
+      Complex(Complex(3, 4), Complex(5, 6)).should == Complex.new(3 - 6, 4 + 5)
+      Complex(Complex(1.5, 2), Complex(-5, 6.3)).should == Complex.new(1.5 - 6.3, 2 - 5)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Complex when passed [Integer, Integer]&quot; do
-  it &quot;returns a new Complex number&quot; do
-    Complex(1, 2).should == Complex.new(1, 2)
-    Complex(-3, -5).should == Complex.new(-3, -5)
-    Complex(3.5, -4.5).should == Complex.new(3.5, -4.5)
-    Complex(bignum_value, 30).should == Complex.new(bignum_value, 30)
</del><ins>+  describe &quot;Complex when passed [Complex]&quot; do
+    it &quot;returns the passed Complex number&quot; do
+      Complex(Complex(1, 2)).should == Complex(1, 2)
+      Complex(Complex(-3.4, bignum_value)).should == Complex(-3.4, bignum_value)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Complex when passed [Integer]&quot; do
-  it &quot;returns a new Complex number with 0 as the imaginary component&quot; do
-    # Guard against the Mathn library
-    conflicts_with :Prime do
-      Complex(1).should eql(Complex.new(1, 0))
-      Complex(-3).should eql(Complex.new(-3, 0))
-      Complex(-4.5).should eql(Complex.new(-4.5, 0))
-      Complex(bignum_value).should eql(Complex.new(bignum_value, 0))
</del><ins>+  describe &quot;Complex when passed [Integer, Integer]&quot; do
+    it &quot;returns a new Complex number&quot; do
+      Complex(1, 2).should == Complex.new(1, 2)
+      Complex(-3, -5).should == Complex.new(-3, -5)
+      Complex(3.5, -4.5).should == Complex.new(3.5, -4.5)
+      Complex(bignum_value, 30).should == Complex.new(bignum_value, 30)
</ins><span class="cx">     end
</span><span class="cx">   end
</span><del>-  
-  it &quot;returns the passed Integer when Complex::Unify is defined&quot; do
-    # Guard against the Mathn library
-    conflicts_with :Prime do
-      begin
-        Complex::Unify = true
-      
-        Complex(1).should eql(1)
-        Complex(-3).should eql(-3)
-        Complex(-4.5).should eql(-4.5)
-        Complex(bignum_value).should eql(bignum_value)
-      ensure
-        Complex.send :remove_const, :Unify
</del><ins>+
+  describe &quot;Complex when passed [Integer]&quot; do
+    it &quot;returns a new Complex number with 0 as the imaginary component&quot; do
+      # Guard against the Mathn library
+      conflicts_with :Prime do
+        Complex(1).should eql(Complex.new(1, 0))
+        Complex(-3).should eql(Complex.new(-3, 0))
+        Complex(-4.5).should eql(Complex.new(-4.5, 0))
+        Complex(bignum_value).should eql(Complex.new(bignum_value, 0))
</ins><span class="cx">       end
</span><span class="cx">     end
</span><ins>+    
+    it &quot;returns the passed Integer when Complex::Unify is defined&quot; do
+      # Guard against the Mathn library
+      conflicts_with :Prime do
+        begin
+          Complex::Unify = true
+        
+          Complex(1).should eql(1)
+          Complex(-3).should eql(-3)
+          Complex(-4.5).should eql(-4.5)
+          Complex(bignum_value).should eql(bignum_value)
+        ensure
+          Complex.send :remove_const, :Unify
+        end
+      end
+    end
</ins><span class="cx">   end
</span><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexabs2_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/abs2_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/abs2_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/abs2_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,7 +1,9 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../shared/complex/abs2'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><span class="cx"> ruby_version_is &quot;&quot;...&quot;1.9&quot; do
</span><ins>+  
+  require 'complex'
+  
</ins><span class="cx">   describe &quot;Complex#abs2&quot; do
</span><span class="cx">     it_behaves_like(:complex_abs2, :abs2)
</span><span class="cx">   end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexabs_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/abs_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/abs_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/abs_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,7 +1,9 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../shared/complex/abs'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><span class="cx"> ruby_version_is &quot;&quot;...&quot;1.9&quot; do
</span><ins>+
+  require 'complex'
+  
</ins><span class="cx">   describe &quot;Complex#abs&quot; do
</span><span class="cx">     it_behaves_like(:complex_abs, :abs)
</span><span class="cx">   end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexcoerce_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/coerce_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/coerce_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/coerce_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,8 +1,10 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../shared/complex/coerce'
</span><del>-require 'complex'
-require &quot;rational&quot;
</del><span class="cx"> 
</span><span class="cx"> ruby_version_is &quot;&quot;...&quot;1.9&quot; do
</span><ins>+  
+  require 'complex'
+  require &quot;rational&quot;
+  
</ins><span class="cx">   describe &quot;Complex#coerce&quot; do
</span><span class="cx">     it_behaves_like(:complex_coerce, :coerce)
</span><span class="cx">   end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexcomparison_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/comparison_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/comparison_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/comparison_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,7 +1,9 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../spec_helper'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><span class="cx"> ruby_version_is &quot;&quot;...&quot;1.9&quot; do
</span><ins>+  
+  require 'complex'
+  
</ins><span class="cx">   describe &quot;Complex#&lt;=&gt;&quot; do
</span><span class="cx">     it &quot;compares the absolute values of self and other&quot; do
</span><span class="cx">       (Complex(1, 2) &lt;=&gt; Complex(2, 1)).should == 0
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexdenominator_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/denominator_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/denominator_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/denominator_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,17 +1,19 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../shared/complex/denominator'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><del>-# FIXME:
-# Complex#denominator requires the rational library,
-# as Integer#denominator is defined by it.
-# I think this method is pretty buggy, as there is no
-# denominator for Floats and rational might not always
-# be loaded, both resulting in a method missing exception.
-# Also, the documentation for Complex#denominator does
-# not mention a dependency for rational.
-require &quot;rational&quot;
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  
+  require 'complex'
</ins><span class="cx"> 
</span><del>-ruby_version_is &quot;&quot;...&quot;1.9&quot; do
</del><ins>+  # FIXME:
+  # Complex#denominator requires the rational library,
+  # as Integer#denominator is defined by it.
+  # I think this method is pretty buggy, as there is no
+  # denominator for Floats and rational might not always
+  # be loaded, both resulting in a method missing exception.
+  # Also, the documentation for Complex#denominator does
+  # not mention a dependency for rational.
+  require &quot;rational&quot;
+
</ins><span class="cx">   describe &quot;Complex#denominator&quot; do
</span><span class="cx">     it_behaves_like(:complex_denominator, :denominator)
</span><span class="cx">   end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexdivide_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/divide_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/divide_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/divide_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,7 +1,9 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../shared/complex/divide'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><span class="cx"> ruby_version_is &quot;&quot;...&quot;1.9&quot; do
</span><ins>+  
+  require 'complex'
+  
</ins><span class="cx">   describe &quot;Complex#/ with Complex&quot; do
</span><span class="cx">     it_behaves_like(:complex_divide_complex, :/)
</span><span class="cx">   end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexequal_value_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/equal_value_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/equal_value_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/equal_value_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,7 +1,9 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../shared/complex/equal_value'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><span class="cx"> ruby_version_is &quot;&quot;...&quot;1.9&quot; do
</span><ins>+  
+  require 'complex'
+  
</ins><span class="cx">   describe &quot;Complex#== with Complex&quot; do
</span><span class="cx">     it_behaves_like(:complex_equal_value_complex, :shared =&gt; true)
</span><span class="cx">   end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexexponent_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/exponent_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/exponent_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/exponent_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,8 +1,10 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../shared/complex/exponent'
</span><del>-require &quot;complex&quot;
-require &quot;rational&quot;
</del><span class="cx"> 
</span><span class="cx"> ruby_version_is &quot;&quot;...&quot;1.9&quot; do
</span><ins>+  
+  require &quot;complex&quot;
+  require &quot;rational&quot;
+  
</ins><span class="cx">   describe &quot;Complex#** when given 0&quot; do
</span><span class="cx">     it_behaves_like(:complex_exponent_zero, :**)
</span><span class="cx">   end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexgeneric_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/generic_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/generic_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/generic_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,23 +1,27 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../spec_helper'
</span><del>-require 'complex'
-require &quot;rational&quot;
</del><span class="cx"> 
</span><del>-describe &quot;Complex.generic?&quot; do
-  it &quot;returns true when given an Integer, Float or Rational&quot; do
-    Complex.generic?(1).should == true
-    Complex.generic?(-1).should == true
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
</ins><span class="cx"> 
</span><del>-    Complex.generic?(20.3).should == true
-    Complex.generic?(-20.3).should == true
</del><ins>+  require 'complex'
+  require &quot;rational&quot;
</ins><span class="cx"> 
</span><del>-    Complex.generic?(bignum_value).should == true
-    Complex.generic?(-bignum_value).should == true
</del><ins>+  describe &quot;Complex.generic?&quot; do
+    it &quot;returns true when given an Integer, Float or Rational&quot; do
+      Complex.generic?(1).should == true
+      Complex.generic?(-1).should == true
</ins><span class="cx"> 
</span><del>-    Complex.generic?(Rational(3, 4)).should == true
-    Complex.generic?(-Rational(3, 4)).should == true
-    
-    Complex.generic?(:symbol).should == false
-    Complex.generic?(&quot;string&quot;).should == false
-    Complex.generic?(mock(&quot;Object&quot;)).should == false
</del><ins>+      Complex.generic?(20.3).should == true
+      Complex.generic?(-20.3).should == true
+
+      Complex.generic?(bignum_value).should == true
+      Complex.generic?(-bignum_value).should == true
+
+      Complex.generic?(Rational(3, 4)).should == true
+      Complex.generic?(-Rational(3, 4)).should == true
+      
+      Complex.generic?(:symbol).should == false
+      Complex.generic?(&quot;string&quot;).should == false
+      Complex.generic?(mock(&quot;Object&quot;)).should == false
+    end
</ins><span class="cx">   end
</span><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexhash_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/hash_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/hash_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/hash_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,17 +1,21 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../spec_helper'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><del>-describe &quot;Complex#hash&quot; do
-  # NOTE:
-  # Complex(2, 1).hash == Complex(1, 2).hash
-  # This can result in Bugs when using hash and
-  # other stuff that relies on #hash
-  it &quot;should be static&quot; do
-    Complex(1).hash.should    == Complex(1).hash
-    Complex(1, 0).hash.should == Complex(1).hash
-    Complex(1, 1).hash.should == Complex(1, 1).hash
-    
-    Complex(1, 2).hash.should_not == Complex(1, 1).hash
-    Complex(2, 1).hash.should_not == Complex(1, 1).hash
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+
+  require 'complex'
+
+  describe &quot;Complex#hash&quot; do
+    # NOTE:
+    # Complex(2, 1).hash == Complex(1, 2).hash
+    # This can result in Bugs when using hash and
+    # other stuff that relies on #hash
+    it &quot;should be static&quot; do
+      Complex(1).hash.should    == Complex(1).hash
+      Complex(1, 0).hash.should == Complex(1).hash
+      Complex(1, 1).hash.should == Complex(1, 1).hash
+      
+      Complex(1, 2).hash.should_not == Complex(1, 1).hash
+      Complex(2, 1).hash.should_not == Complex(1, 1).hash
+    end
</ins><span class="cx">   end
</span><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycompleximag_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/imag_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/imag_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/imag_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,7 +1,10 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/image'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><del>-describe &quot;Complex#imag&quot; do
-  it_behaves_like(:complex_image, :imag)
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  require 'complex'
+
+  describe &quot;Complex#imag&quot; do
+    it_behaves_like(:complex_image, :imag)
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycompleximage_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/image_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/image_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/image_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,7 +1,11 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../spec_helper'
</span><del>-require File.dirname(__FILE__) + '/shared/image'
-require 'complex'
</del><span class="cx"> 
</span><del>-describe &quot;Complex#image&quot; do
-  it_behaves_like(:complex_image, :image)
-end
</del><span class="cx">\ No newline at end of file
</span><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+
+  require 'complex'
+  require File.dirname(__FILE__) + '/shared/image'
+
+  describe &quot;Complex#image&quot; do
+    it_behaves_like(:complex_image, :image)
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexinspect_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/inspect_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/inspect_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/inspect_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,15 +1,19 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../spec_helper'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><del>-describe &quot;Complex#inspect&quot; do
-  it %{returns &quot;Complex(real, image)&quot;} do
-    # Guard against the Mathn library
-    conflicts_with :Prime do
-      Complex(1).inspect.should == &quot;Complex(1, 0)&quot;
-      Complex(7).inspect.should == &quot;Complex(7, 0)&quot;
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+
+  require 'complex'
+
+  describe &quot;Complex#inspect&quot; do
+    it %{returns &quot;Complex(real, image)&quot;} do
+      # Guard against the Mathn library
+      conflicts_with :Prime do
+        Complex(1).inspect.should == &quot;Complex(1, 0)&quot;
+        Complex(7).inspect.should == &quot;Complex(7, 0)&quot;
+      end
+
+      Complex(-1, 4).inspect.should == &quot;Complex(-1, 4)&quot;
+      Complex(-7, 6.7).inspect.should == &quot;Complex(-7, 6.7)&quot;
</ins><span class="cx">     end
</span><del>-
-    Complex(-1, 4).inspect.should == &quot;Complex(-1, 4)&quot;
-    Complex(-7, 6.7).inspect.should == &quot;Complex(-7, 6.7)&quot;
</del><span class="cx">   end
</span><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathacos_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/acos_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/acos_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/acos_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,29 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/acos'
</span><span class="cx"> 
</span><del>-describe &quot;Math#acos&quot; do
-  it_behaves_like :complex_math_acos, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:acos)
</del><ins>+  describe &quot;Math#acos&quot; do
+    it_behaves_like :complex_math_acos, :_, IncludesMath.new
+
+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:acos)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#acos!&quot; do
-  it_behaves_like :complex_math_acos_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#acos!&quot; do
+    it_behaves_like :complex_math_acos_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:acos!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:acos!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.acos&quot; do
-  it_behaves_like :complex_math_acos, :_, Math
-end
</del><ins>+  describe &quot;Math.acos&quot; do
+    it_behaves_like :complex_math_acos, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.acos!&quot; do
-  it_behaves_like :complex_math_acos_bang, :_, Math
</del><ins>+  describe &quot;Math.acos!&quot; do
+    it_behaves_like :complex_math_acos_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathacosh_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/acosh_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/acosh_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/acosh_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,28 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/acosh'
</span><span class="cx"> 
</span><del>-describe &quot;Math#acosh&quot; do
-  it_behaves_like :complex_math_acosh, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  describe &quot;Math#acosh&quot; do
+    it_behaves_like :complex_math_acosh, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:acosh)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:acosh)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#acosh!&quot; do
-  it_behaves_like :complex_math_acosh_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#acosh!&quot; do
+    it_behaves_like :complex_math_acosh_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:acosh!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:acosh!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.acosh&quot; do
-  it_behaves_like :complex_math_acosh, :_, Math
-end
</del><ins>+  describe &quot;Math.acosh&quot; do
+    it_behaves_like :complex_math_acosh, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.acosh!&quot; do
-  it_behaves_like :complex_math_acosh_bang, :_, Math
</del><ins>+  describe &quot;Math.acosh!&quot; do
+    it_behaves_like :complex_math_acosh_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathasin_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/asin_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/asin_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/asin_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,28 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/asin'
</span><span class="cx"> 
</span><del>-describe &quot;Math#asin&quot; do
-  it_behaves_like :complex_math_asin, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  describe &quot;Math#asin&quot; do
+    it_behaves_like :complex_math_asin, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:asin)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:asin)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#asin!&quot; do
-  it_behaves_like :complex_math_asin_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#asin!&quot; do
+    it_behaves_like :complex_math_asin_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:asin!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:asin!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.asin&quot; do
-  it_behaves_like :complex_math_asin, :_, Math
-end
</del><ins>+  describe &quot;Math.asin&quot; do
+    it_behaves_like :complex_math_asin, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.asin!&quot; do
-  it_behaves_like :complex_math_asin_bang, :_, Math
</del><ins>+  describe &quot;Math.asin!&quot; do
+    it_behaves_like :complex_math_asin_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathasinh_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/asinh_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/asinh_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/asinh_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,28 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/asinh'
</span><span class="cx"> 
</span><del>-describe &quot;Math#asinh&quot; do
-  it_behaves_like :complex_math_asinh, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  describe &quot;Math#asinh&quot; do
+    it_behaves_like :complex_math_asinh, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:asinh)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:asinh)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#asinh!&quot; do
-  it_behaves_like :complex_math_asinh_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#asinh!&quot; do
+    it_behaves_like :complex_math_asinh_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:asinh!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:asinh!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.asinh&quot; do
-  it_behaves_like :complex_math_asinh, :_, Math
-end
</del><ins>+  describe &quot;Math.asinh&quot; do
+    it_behaves_like :complex_math_asinh, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.asinh!&quot; do
-  it_behaves_like :complex_math_asinh_bang, :_, Math
</del><ins>+  describe &quot;Math.asinh!&quot; do
+    it_behaves_like :complex_math_asinh_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathatan2_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/atan2_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/atan2_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/atan2_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,28 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/atan2'
</span><span class="cx"> 
</span><del>-describe &quot;Math#atan2&quot; do
-  it_behaves_like :complex_math_atan2, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  describe &quot;Math#atan2&quot; do
+    it_behaves_like :complex_math_atan2, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:atan2)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:atan2)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#atan2!&quot; do
-  it_behaves_like :complex_math_atan2_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#atan2!&quot; do
+    it_behaves_like :complex_math_atan2_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:atan2!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:atan2!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.atan2&quot; do
-  it_behaves_like :complex_math_atan2, :_, Math
-end
</del><ins>+  describe &quot;Math.atan2&quot; do
+    it_behaves_like :complex_math_atan2, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.atan2!&quot; do
-  it_behaves_like :complex_math_atan2_bang, :_, Math
</del><ins>+  describe &quot;Math.atan2!&quot; do
+    it_behaves_like :complex_math_atan2_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathatan_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/atan_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/atan_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/atan_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,28 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/atan'
</span><span class="cx"> 
</span><del>-describe &quot;Math#atan&quot; do
-  it_behaves_like :complex_math_atan, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  describe &quot;Math#atan&quot; do
+    it_behaves_like :complex_math_atan, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:atan)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:atan)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#atan!&quot; do
-  it_behaves_like :complex_math_atan_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#atan!&quot; do
+    it_behaves_like :complex_math_atan_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:atan!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:atan!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.atan&quot; do
-  it_behaves_like :complex_math_atan, :_, Math
-end
</del><ins>+  describe &quot;Math.atan&quot; do
+    it_behaves_like :complex_math_atan, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.atan!&quot; do
-  it_behaves_like :complex_math_atan_bang, :_, Math
</del><ins>+  describe &quot;Math.atan!&quot; do
+    it_behaves_like :complex_math_atan_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathatanh_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/atanh_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/atanh_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/atanh_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,28 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/atanh'
</span><span class="cx"> 
</span><del>-describe &quot;Math#atanh&quot; do
-  it_behaves_like :complex_math_atanh, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  describe &quot;Math#atanh&quot; do
+    it_behaves_like :complex_math_atanh, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:atanh)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:atanh)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#atanh!&quot; do
-  it_behaves_like :complex_math_atanh_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#atanh!&quot; do
+    it_behaves_like :complex_math_atanh_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:atanh!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:atanh!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.atanh&quot; do
-  it_behaves_like :complex_math_atanh, :_, Math
-end
</del><ins>+  describe &quot;Math.atanh&quot; do
+    it_behaves_like :complex_math_atanh, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.atanh!&quot; do
-  it_behaves_like :complex_math_atanh_bang, :_, Math
</del><ins>+  describe &quot;Math.atanh!&quot; do
+    it_behaves_like :complex_math_atanh_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathcos_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/cos_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/cos_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/cos_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,28 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/cos'
</span><span class="cx"> 
</span><del>-describe &quot;Math#cos&quot; do
-  it_behaves_like :complex_math_cos, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  describe &quot;Math#cos&quot; do
+    it_behaves_like :complex_math_cos, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:cos)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:cos)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#cos!&quot; do
-  it_behaves_like :complex_math_cos_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#cos!&quot; do
+    it_behaves_like :complex_math_cos_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:cos!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:cos!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.cos&quot; do
-  it_behaves_like :complex_math_cos, :_, Math
-end
</del><ins>+  describe &quot;Math.cos&quot; do
+    it_behaves_like :complex_math_cos, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.cos!&quot; do
-  it_behaves_like :complex_math_cos_bang, :_, Math
</del><ins>+  describe &quot;Math.cos!&quot; do
+    it_behaves_like :complex_math_cos_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathcosh_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/cosh_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/cosh_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/cosh_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,28 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/cosh'
</span><span class="cx"> 
</span><del>-describe &quot;Math#cosh&quot; do
-  it_behaves_like :complex_math_cosh, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  describe &quot;Math#cosh&quot; do
+    it_behaves_like :complex_math_cosh, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:cosh)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:cosh)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#cosh!&quot; do
-  it_behaves_like :complex_math_cosh_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#cosh!&quot; do
+    it_behaves_like :complex_math_cosh_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:cosh!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:cosh!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.cosh&quot; do
-  it_behaves_like :complex_math_cosh, :_, Math
-end
</del><ins>+  describe &quot;Math.cosh&quot; do
+    it_behaves_like :complex_math_cosh, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.cosh!&quot; do
-  it_behaves_like :complex_math_cosh_bang, :_, Math
</del><ins>+  describe &quot;Math.cosh!&quot; do
+    it_behaves_like :complex_math_cosh_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathexp_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/exp_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/exp_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/exp_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,28 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/exp'
</span><span class="cx"> 
</span><del>-describe &quot;Math#exp&quot; do
-  it_behaves_like :complex_math_exp, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  describe &quot;Math#exp&quot; do
+    it_behaves_like :complex_math_exp, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:exp)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:exp)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#exp!&quot; do
-  it_behaves_like :complex_math_exp_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#exp!&quot; do
+    it_behaves_like :complex_math_exp_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:exp!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:exp!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.exp&quot; do
-  it_behaves_like :complex_math_exp, :_, Math
-end
</del><ins>+  describe &quot;Math.exp&quot; do
+    it_behaves_like :complex_math_exp, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.exp!&quot; do
-  it_behaves_like :complex_math_exp_bang, :_, Math
</del><ins>+  describe &quot;Math.exp!&quot; do
+    it_behaves_like :complex_math_exp_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathlog10_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/log10_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/log10_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/log10_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,28 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/log10'
</span><span class="cx"> 
</span><del>-describe &quot;Math#log10&quot; do
-  it_behaves_like :complex_math_log10, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  describe &quot;Math#log10&quot; do
+    it_behaves_like :complex_math_log10, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:log10)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:log10)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#log10!&quot; do
-  it_behaves_like :complex_math_log10_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#log10!&quot; do
+    it_behaves_like :complex_math_log10_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:log10!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:log10!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.log10&quot; do
-  it_behaves_like :complex_math_log10, :_, Math
-end
</del><ins>+  describe &quot;Math.log10&quot; do
+    it_behaves_like :complex_math_log10, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.log10!&quot; do
-  it_behaves_like :complex_math_log10_bang, :_, Math
</del><ins>+  describe &quot;Math.log10!&quot; do
+    it_behaves_like :complex_math_log10_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathlog_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/log_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/log_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/log_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,28 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/log'
</span><span class="cx"> 
</span><del>-describe &quot;Math#log&quot; do
-  it_behaves_like :complex_math_log, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  describe &quot;Math#log&quot; do
+    it_behaves_like :complex_math_log, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:log)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:log)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#log!&quot; do
-  it_behaves_like :complex_math_log_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#log!&quot; do
+    it_behaves_like :complex_math_log_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:log!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:log!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.log&quot; do
-  it_behaves_like :complex_math_log, :_, Math
-end
</del><ins>+  describe &quot;Math.log&quot; do
+    it_behaves_like :complex_math_log, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.log!&quot; do
-  it_behaves_like :complex_math_log_bang, :_, Math
</del><ins>+  describe &quot;Math.log!&quot; do
+    it_behaves_like :complex_math_log_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedacosrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/acos.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/acos.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/acos.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_acos, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedacoshrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/acosh.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/acosh.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/acosh.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_acosh, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedasinrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/asin.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/asin.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/asin.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_asin, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedasinhrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/asinh.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/asinh.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/asinh.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_asinh, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedatanrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/atan.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/atan.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/atan.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_atan, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedatan2rb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/atan2.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/atan2.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/atan2.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_atan2, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedatanhrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/atanh.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/atanh.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/atanh.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_atanh, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedcosrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/cos.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/cos.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/cos.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_cos, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedcoshrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/cosh.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/cosh.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/cosh.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_cosh, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedexprb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/exp.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/exp.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/exp.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_exp, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedlogrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/log.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/log.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/log.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_log, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedlog10rb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/log10.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/log10.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/log10.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_log10, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedsinrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/sin.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/sin.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/sin.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_sin, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedsinhrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/sinh.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/sinh.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/sinh.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_sinh, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedsqrtrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/sqrt.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/sqrt.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/sqrt.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_sqrt, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedtanrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/tan.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/tan.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/tan.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_tan, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsharedtanhrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/tanh.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/tanh.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/shared/tanh.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,3 @@
</span><del>-require 'complex'
</del><span class="cx"> require File.dirname(__FILE__) + '/../fixtures/classes'
</span><span class="cx"> 
</span><span class="cx"> describe :complex_math_tanh, :shared =&gt; true do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsin_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/sin_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/sin_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/sin_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,28 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/sin'
</span><span class="cx"> 
</span><del>-describe &quot;Math#sin&quot; do
-  it_behaves_like :complex_math_sin, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  describe &quot;Math#sin&quot; do
+    it_behaves_like :complex_math_sin, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:sin)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:sin)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#sin!&quot; do
-  it_behaves_like :complex_math_sin_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#sin!&quot; do
+    it_behaves_like :complex_math_sin_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:sin!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:sin!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.sin&quot; do
-  it_behaves_like :complex_math_sin, :_, Math
-end
</del><ins>+  describe &quot;Math.sin&quot; do
+    it_behaves_like :complex_math_sin, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.sin!&quot; do
-  it_behaves_like :complex_math_sin_bang, :_, Math
</del><ins>+  describe &quot;Math.sin!&quot; do
+    it_behaves_like :complex_math_sin_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsinh_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/sinh_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/sinh_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/sinh_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,28 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/sinh'
</span><span class="cx"> 
</span><del>-describe &quot;Math#sinh&quot; do
-  it_behaves_like :complex_math_sinh, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  describe &quot;Math#sinh&quot; do
+    it_behaves_like :complex_math_sinh, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:sinh)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:sinh)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#sinh!&quot; do
-  it_behaves_like :complex_math_sinh_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#sinh!&quot; do
+    it_behaves_like :complex_math_sinh_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:sinh!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:sinh!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.sinh&quot; do
-  it_behaves_like :complex_math_sinh, :_, Math
-end
</del><ins>+  describe &quot;Math.sinh&quot; do
+    it_behaves_like :complex_math_sinh, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.sinh!&quot; do
-  it_behaves_like :complex_math_sinh_bang, :_, Math
</del><ins>+  describe &quot;Math.sinh!&quot; do
+    it_behaves_like :complex_math_sinh_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathsqrt_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/sqrt_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/sqrt_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/sqrt_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,28 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/sqrt'
</span><span class="cx"> 
</span><del>-describe &quot;Math#sqrt&quot; do
-  it_behaves_like :complex_math_sqrt, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  describe &quot;Math#sqrt&quot; do
+    it_behaves_like :complex_math_sqrt, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:sqrt)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:sqrt)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#sqrt!&quot; do
-  it_behaves_like :complex_math_sqrt_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#sqrt!&quot; do
+    it_behaves_like :complex_math_sqrt_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:sqrt!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:sqrt!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.sqrt&quot; do
-  it_behaves_like :complex_math_sqrt, :_, Math
-end
</del><ins>+  describe &quot;Math.sqrt&quot; do
+    it_behaves_like :complex_math_sqrt, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.sqrt!&quot; do
-  it_behaves_like :complex_math_sqrt_bang, :_, Math
</del><ins>+  describe &quot;Math.sqrt!&quot; do
+    it_behaves_like :complex_math_sqrt_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathtan_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/tan_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/tan_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/tan_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,28 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/tan'
</span><span class="cx"> 
</span><del>-describe &quot;Math#tan&quot; do
-  it_behaves_like :complex_math_tan, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  describe &quot;Math#tan&quot; do
+    it_behaves_like :complex_math_tan, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:tan)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:tan)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#tan!&quot; do
-  it_behaves_like :complex_math_tan_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#tan!&quot; do
+    it_behaves_like :complex_math_tan_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:tan!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:tan!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.tan&quot; do
-  it_behaves_like :complex_math_tan, :_, Math
-end
</del><ins>+  describe &quot;Math.tan&quot; do
+    it_behaves_like :complex_math_tan, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.tan!&quot; do
-  it_behaves_like :complex_math_tan_bang, :_, Math
</del><ins>+  describe &quot;Math.tan!&quot; do
+    it_behaves_like :complex_math_tan_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmathtanh_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/math/tanh_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/math/tanh_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/math/tanh_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,28 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/tanh'
</span><span class="cx"> 
</span><del>-describe &quot;Math#tanh&quot; do
-  it_behaves_like :complex_math_tanh, :_, IncludesMath.new
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  describe &quot;Math#tanh&quot; do
+    it_behaves_like :complex_math_tanh, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:tanh)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:tanh)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math#tanh!&quot; do
-  it_behaves_like :complex_math_tanh_bang, :_, IncludesMath.new
</del><ins>+  describe &quot;Math#tanh!&quot; do
+    it_behaves_like :complex_math_tanh_bang, :_, IncludesMath.new
</ins><span class="cx"> 
</span><del>-  it &quot;should be private&quot; do
-    IncludesMath.should have_private_instance_method(:tanh!)
</del><ins>+    it &quot;should be private&quot; do
+      IncludesMath.should have_private_instance_method(:tanh!)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Math.tanh&quot; do
-  it_behaves_like :complex_math_tanh, :_, Math
-end
</del><ins>+  describe &quot;Math.tanh&quot; do
+    it_behaves_like :complex_math_tanh, :_, Math
+  end
</ins><span class="cx"> 
</span><del>-describe &quot;Math.tanh!&quot; do
-  it_behaves_like :complex_math_tanh_bang, :_, Math
</del><ins>+  describe &quot;Math.tanh!&quot; do
+    it_behaves_like :complex_math_tanh_bang, :_, Math
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexminus_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/minus_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/minus_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/minus_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,30 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../spec_helper'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><del>-describe &quot;Complex#- with Complex&quot; do
-  it &quot;subtracts both the real and imaginary components&quot; do
-    (Complex(1, 2) - Complex(10, 20)).should == Complex(1 - 10, 2 - 20)
-    (Complex(1.5, 2.1) - Complex(100.2, -30.3)).should == Complex(1.5 - 100.2, 2.1 - (-30.3))
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+
+  require 'complex'
+
+  describe &quot;Complex#- with Complex&quot; do
+    it &quot;subtracts both the real and imaginary components&quot; do
+      (Complex(1, 2) - Complex(10, 20)).should == Complex(1 - 10, 2 - 20)
+      (Complex(1.5, 2.1) - Complex(100.2, -30.3)).should == Complex(1.5 - 100.2, 2.1 - (-30.3))
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Complex#- with Integer&quot; do
-  it &quot;subtracts the real number from the real component of self&quot; do
-    (Complex(1, 2) - 50).should == Complex(-49, 2)
-    (Complex(1, 2) - 50.5).should == Complex(-49.5, 2)
</del><ins>+  describe &quot;Complex#- with Integer&quot; do
+    it &quot;subtracts the real number from the real component of self&quot; do
+      (Complex(1, 2) - 50).should == Complex(-49, 2)
+      (Complex(1, 2) - 50.5).should == Complex(-49.5, 2)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Complex#- with Object&quot; do
-  it &quot;tries to coerce self into other&quot; do
-    value = Complex(3, 9)
-    
-    obj = mock(&quot;Object&quot;)
-    obj.should_receive(:coerce).with(value).and_return([2, 5])
-    (value - obj).should == 2 - 5
</del><ins>+  describe &quot;Complex#- with Object&quot; do
+    it &quot;tries to coerce self into other&quot; do
+      value = Complex(3, 9)
+      
+      obj = mock(&quot;Object&quot;)
+      obj.should_receive(:coerce).with(value).and_return([2, 5])
+      (value - obj).should == 2 - 5
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx">\ No newline at end of file
</span><ins>+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmodulo_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/modulo_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/modulo_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/modulo_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,18 @@
</span><del>-require File.dirname(__FILE__) + '/../../spec_helper'
-require 'complex'
</del><ins>+require File.dirname(__FILE__) + '/../../shared/complex/modulo'
</ins><span class="cx"> 
</span><del>-describe &quot;Complex#% with Complex&quot; do
-  it &quot;returns the remainder from complex division&quot; do
-    (Complex(13, 44) % Complex(5, 20)).should == Complex(13 % 5, 44 % 20)
-    (Complex(13.5, 44.5) % Complex(5.5, 20.5)).should == Complex(13.5 % 5.5, 44.5 % 20.5)
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+
+  require 'complex'
+
+  describe &quot;Complex#% with Complex&quot; do
+    it_behaves_like(:complex_modulo_complex, :%)
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Complex#% with Integer&quot; do
-  it &quot;returns the remainder from dividing both parts of self by the given Integer&quot; do
-    (Complex(21, 42) % 10).should == Complex(21 % 10, 42 % 10)
-    (Complex(15.5, 16.5) % 2.0).should be_close(Complex(15.5 % 2, 16.5 % 2), TOLERANCE)
</del><ins>+  describe &quot;Complex#% with Integer&quot; do
+    it_behaves_like(:complex_modulo_integer, :%)
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Complex#% with Object&quot; do
-  it &quot;tries to coerce self into other&quot; do
-    value = Complex(3, 9)
-    
-    obj = mock(&quot;Object&quot;)
-    obj.should_receive(:coerce).with(value).and_return([2, 5])
-    (value % obj).should == 2 % 5
</del><ins>+  describe &quot;Complex#% with Object&quot; do
+    it_behaves_like(:complex_modulo_object, :%)
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx">\ No newline at end of file
</span><ins>+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexmultiply_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/multiply_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/multiply_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/multiply_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,18 @@
</span><del>-require File.dirname(__FILE__) + '/../../spec_helper'
-require 'complex'
</del><ins>+require File.dirname(__FILE__) + '/../../shared/complex/multiply'
</ins><span class="cx"> 
</span><del>-describe &quot;Complex#* with Complex&quot; do
-  it &quot;multiplies according to the usual rule for complex numbers: (a + bi) * (c + di) = ac - bd + (ad + bc)i&quot; do
-    (Complex(1, 2) * Complex(10, 20)).should == Complex((1 * 10) - (2 * 20), (1 * 20) + (2 * 10))
-    (Complex(1.5, 2.1) * Complex(100.2, -30.3)).should == Complex((1.5 * 100.2) - (2.1 * -30.3), (1.5 * -30.3) + (2.1 * 100.2))
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+
+  require 'complex'
+
+  describe &quot;Complex#* with Complex&quot; do
+    it_behaves_like(:complex_multiply_complex, :*)
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Complex#* with Integer&quot; do
-  it &quot;multiplies both parts of self by the given Integer&quot; do
-    (Complex(3, 2) * 50).should == Complex(150, 100)
-    (Complex(-3, 2) * 50.5).should == Complex(-151.5, 101)
</del><ins>+  describe &quot;Complex#* with Integer&quot; do
+    it_behaves_like(:complex_multiply_integer, :*)
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Complex#* with Object&quot; do
-  it &quot;tries to coerce self into other&quot; do
-    value = Complex(3, 9)
-    
-    obj = mock(&quot;Object&quot;)
-    obj.should_receive(:coerce).with(value).and_return([2, 5])
-    (value * obj).should == 2 * 5
</del><ins>+  describe &quot;Complex#* with Object&quot; do
+    it_behaves_like(:complex_multiply_object, :*)
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx">\ No newline at end of file
</span><ins>+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexnew_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/new_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/new_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/new_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,39 +1,43 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../spec_helper'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><del>-describe &quot;Complex.new&quot; do
-  it &quot;returns a new Complex number&quot; do
-    Complex.new(1, 2).class.should == Complex
-  end
-  
-  it &quot;raises a TypeError when one of the given arguments is not Numeric&quot; do
-    lambda { Complex.new(1, &quot;foo&quot;) }.should raise_error(TypeError)
-    lambda { Complex.new(&quot;bar&quot;, 2) }.should raise_error(TypeError)
-  end
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
</ins><span class="cx"> 
</span><del>-  it &quot;raises a TypeError when one of the given arguments is a Complex&quot; do
-    lambda { Complex.new(Complex(1), &quot;foo&quot;) }.should raise_error(TypeError)
-    lambda { Complex.new(&quot;bar&quot;, Complex(3, 5)) }.should raise_error(TypeError)
-  end
-end
</del><ins>+  require 'complex'
</ins><span class="cx"> 
</span><del>-describe &quot;Complex.new!&quot; do
-  it &quot;returns a new Complex number&quot; do
-    Complex.new(1, 2).class.should == Complex
</del><ins>+  describe &quot;Complex.new&quot; do
+    it &quot;returns a new Complex number&quot; do
+      Complex.new(1, 2).class.should == Complex
+    end
+    
+    it &quot;raises a TypeError when one of the given arguments is not Numeric&quot; do
+      lambda { Complex.new(1, &quot;foo&quot;) }.should raise_error(TypeError)
+      lambda { Complex.new(&quot;bar&quot;, 2) }.should raise_error(TypeError)
+    end
+
+    it &quot;raises a TypeError when one of the given arguments is a Complex&quot; do
+      lambda { Complex.new(Complex(1), &quot;foo&quot;) }.should raise_error(TypeError)
+      lambda { Complex.new(&quot;bar&quot;, Complex(3, 5)) }.should raise_error(TypeError)
+    end
</ins><span class="cx">   end
</span><del>-  
-  it &quot;defaults to 0 for the imaginery part&quot; do
-    a = Complex.new!(3)
-    a.image.should == 0
-  end
-  
-  it &quot;raises a TypeError when one of the given arguments is not Numeric&quot; do
-    lambda { Complex.new(1, &quot;foo&quot;) }.should raise_error(TypeError)
-    lambda { Complex.new(&quot;bar&quot;, 2) }.should raise_error(TypeError)
-  end
</del><span class="cx"> 
</span><del>-  it &quot;raises a TypeError when one of the given arguments is a Complex&quot; do
-    lambda { Complex.new(Complex(1), &quot;foo&quot;) }.should raise_error(TypeError)
-    lambda { Complex.new(&quot;bar&quot;, Complex(3, 5)) }.should raise_error(TypeError)
</del><ins>+  describe &quot;Complex.new!&quot; do
+    it &quot;returns a new Complex number&quot; do
+      Complex.new(1, 2).class.should == Complex
+    end
+    
+    it &quot;defaults to 0 for the imaginery part&quot; do
+      a = Complex.new!(3)
+      a.image.should == 0
+    end
+    
+    it &quot;raises a TypeError when one of the given arguments is not Numeric&quot; do
+      lambda { Complex.new(1, &quot;foo&quot;) }.should raise_error(TypeError)
+      lambda { Complex.new(&quot;bar&quot;, 2) }.should raise_error(TypeError)
+    end
+
+    it &quot;raises a TypeError when one of the given arguments is a Complex&quot; do
+      lambda { Complex.new(Complex(1), &quot;foo&quot;) }.should raise_error(TypeError)
+      lambda { Complex.new(&quot;bar&quot;, Complex(3, 5)) }.should raise_error(TypeError)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx">\ No newline at end of file
</span><ins>+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexnumerator_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/numerator_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/numerator_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/numerator_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,22 +1,12 @@
</span><del>-require File.dirname(__FILE__) + '/../../spec_helper'
-require 'complex'
-# Depends on Rational to be loaded.
-require &quot;rational&quot;
</del><ins>+require File.dirname(__FILE__) + '/../../shared/complex/numerator'
</ins><span class="cx"> 
</span><del>-describe &quot;Complex#numerator&quot; do
-  it &quot;returns self's numerator&quot; do
-    Complex(2).numerator.should    == Complex(2)
-    Complex(3, 4).numerator.should == Complex(3, 4)
-    
-    Complex(Rational(3, 4), Rational(3, 4)).numerator.should == Complex(3, 3)
-    Complex(Rational(7, 4), Rational(8, 4)).numerator.should == Complex(7, 8)
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  
+  require 'complex'
+  # Depends on Rational to be loaded.
+  require &quot;rational&quot;
</ins><span class="cx"> 
</span><del>-    Complex(Rational(7, 8), Rational(8, 4)).numerator.should == Complex(7, 16)
-    Complex(Rational(7, 4), Rational(8, 8)).numerator.should == Complex(7, 4)
-    
-    # NOTE:
-    # Bug? - Fails with a MethodMissingError
-    # (undefined method `denominator' for 3.5:Float)
-    # Complex(3.5, 3.7).numerator
</del><ins>+  describe &quot;Complex#numerator&quot; do
+    it_behaves_like(:complex_numerator, :numerator)
</ins><span class="cx">   end
</span><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericangle_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/numeric/angle_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/numeric/angle_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/numeric/angle_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,7 +1,11 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/arg'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><del>-describe &quot;Numeric#angle&quot; do
-  it_behaves_like :numeric_arg, :angle
-end
</del><span class="cx">\ No newline at end of file
</span><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+
+  require 'complex'
+
+  describe &quot;Numeric#angle&quot; do
+    it_behaves_like :numeric_arg, :angle
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericarg_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/numeric/arg_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/numeric/arg_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/numeric/arg_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,7 +1,11 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/arg'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><del>-describe &quot;Numeric#arg&quot; do
-  it_behaves_like :numeric_arg, :arg
-end
</del><span class="cx">\ No newline at end of file
</span><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+
+  require 'complex'
+
+  describe &quot;Numeric#arg&quot; do
+    it_behaves_like :numeric_arg, :arg
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericconj_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/numeric/conj_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/numeric/conj_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/numeric/conj_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,7 +1,11 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/conjugate'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><del>-describe &quot;Numeric#conj&quot; do
-  it_behaves_like :numeric_conjugate, :conj
-end
</del><span class="cx">\ No newline at end of file
</span><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  
+  require 'complex'
+
+  describe &quot;Numeric#conj&quot; do
+    it_behaves_like :numeric_conjugate, :conj
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericconjugate_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/numeric/conjugate_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/numeric/conjugate_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/numeric/conjugate_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,7 +1,11 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/conjugate'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><del>-describe &quot;Numeric#conjugate&quot; do
-  it_behaves_like :numeric_conjugate, :conjugate
-end
</del><span class="cx">\ No newline at end of file
</span><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+
+  require 'complex'
+
+  describe &quot;Numeric#conjugate&quot; do
+    it_behaves_like :numeric_conjugate, :conjugate
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericim_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/numeric/im_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/numeric/im_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/numeric/im_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,10 +1,14 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><del>-describe &quot;Numeric#im&quot; do
-  it &quot;returns a new Complex number with self as the imaginary component&quot; do
-    20.im.should == Complex(0, 20)
-    (-4.5).im.should == Complex(0, -4.5)
-    bignum_value.im.should == Complex(0, bignum_value)
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+
+  require 'complex'
+
+  describe &quot;Numeric#im&quot; do
+    it &quot;returns a new Complex number with self as the imaginary component&quot; do
+      20.im.should == Complex(0, 20)
+      (-4.5).im.should == Complex(0, -4.5)
+      bignum_value.im.should == Complex(0, bignum_value)
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx">\ No newline at end of file
</span><ins>+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericimag_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/numeric/imag_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/numeric/imag_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/numeric/imag_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,7 +1,11 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/image'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><del>-describe &quot;Numeric#imag&quot; do
-  it_behaves_like :numeric_image, :imag
-end
</del><span class="cx">\ No newline at end of file
</span><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+
+  require 'complex'
+
+  describe &quot;Numeric#imag&quot; do
+    it_behaves_like :numeric_image, :imag
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericimage_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/numeric/image_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/numeric/image_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/numeric/image_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,7 +1,11 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><span class="cx"> require File.dirname(__FILE__) + '/shared/image'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><del>-describe &quot;Numeric#image&quot; do
-  it_behaves_like :numeric_image, :image
-end
</del><span class="cx">\ No newline at end of file
</span><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+
+  require 'complex'
+
+  describe &quot;Numeric#image&quot; do
+    it_behaves_like :numeric_image, :image
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericpolar_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/numeric/polar_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/numeric/polar_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/numeric/polar_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,15 +1,19 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><del>-describe &quot;Numeric#polar&quot; do
-  it &quot;returns self's absolute value and self's argument&quot; do
-    5.polar.should == [5, 0]
-    (-5).polar.should == [5, Math::PI]
-    
-    4.5.polar.should == [4.5, 0]
-    (-4.5).polar.should == [4.5, Math::PI]
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
</ins><span class="cx"> 
</span><del>-    bignum_value.polar.should == [bignum_value, 0]
-    (-bignum_value).polar.should == [bignum_value, Math::PI]
</del><ins>+  require 'complex'
+
+  describe &quot;Numeric#polar&quot; do
+    it &quot;returns self's absolute value and self's argument&quot; do
+      5.polar.should == [5, 0]
+      (-5).polar.should == [5, Math::PI]
+      
+      4.5.polar.should == [4.5, 0]
+      (-4.5).polar.should == [4.5, Math::PI]
+
+      bignum_value.polar.should == [bignum_value, 0]
+      (-bignum_value).polar.should == [bignum_value, Math::PI]
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx">\ No newline at end of file
</span><ins>+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericreal_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/numeric/real_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/numeric/real_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/numeric/real_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,10 +1,14 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../../spec_helper'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><del>-describe &quot;Numeric#real&quot; do
-  it &quot;returns self&quot; do
-    20.real.should == 20
-    (-4.5).real.should == -4.5
-    bignum_value.real.should == bignum_value
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+
+  require 'complex'
+
+  describe &quot;Numeric#real&quot; do
+    it &quot;returns self&quot; do
+      20.real.should == 20
+      (-4.5).real.should == -4.5
+      bignum_value.real.should == bignum_value
+    end
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx">\ No newline at end of file
</span><ins>+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericsharedargrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/numeric/shared/arg.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/numeric/shared/arg.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/numeric/shared/arg.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,5 +1,3 @@
</span><del>-require 'complex'
-
</del><span class="cx"> describe :numeric_arg, :shared =&gt; true do
</span><span class="cx">   it &quot;returns 0 if self is greater than or equal to 0&quot; do
</span><span class="cx">     0.send(@method).should == 0
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericsharedconjugaterb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/numeric/shared/conjugate.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/numeric/shared/conjugate.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/numeric/shared/conjugate.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,5 +1,3 @@
</span><del>-require 'complex'
-
</del><span class="cx"> describe :numeric_conjugate, :shared =&gt; true do
</span><span class="cx">   it &quot;returns self&quot; do
</span><span class="cx">     20.send(@method).should == 20
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexnumericsharedimagerb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/numeric/shared/image.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/numeric/shared/image.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/numeric/shared/image.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,5 +1,3 @@
</span><del>-require 'complex'
-
</del><span class="cx"> describe :numeric_image, :shared =&gt; true do
</span><span class="cx">   it &quot;returns 0&quot; do
</span><span class="cx">     20.send(@method).should == 0
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexplus_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/plus_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/plus_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/plus_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,26 +1,18 @@
</span><del>-require File.dirname(__FILE__) + '/../../spec_helper'
-require 'complex'
</del><ins>+require File.dirname(__FILE__) + '/../../shared/complex/plus'
</ins><span class="cx"> 
</span><del>-describe &quot;Complex#+ with Complex&quot; do
-  it &quot;adds both the real and imaginary components&quot; do
-    (Complex(1, 2) + Complex(10, 20)).should == Complex(1 + 10, 2 + 20)
-    (Complex(1.5, 2.1) + Complex(100.2, -30.3)).should == Complex(1.5 + 100.2, 2.1 + (-30.3))
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+
+  require 'complex'
+
+  describe &quot;Complex#+ with Complex&quot; do
+    it_behaves_like(:complex_plus_complex, :+)
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Complex#+ with Integer&quot; do
-  it &quot;adds the real number to the real component of self&quot; do
-    (Complex(1, 2) + 50).should == Complex(51, 2)
-    (Complex(1, 2) + 50.5).should == Complex(51.5, 2)
</del><ins>+  describe &quot;Complex#+ with Integer&quot; do
+    it_behaves_like(:complex_plus_integer, :+)
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx"> 
</span><del>-describe &quot;Complex#+ with Object&quot; do
-  it &quot;tries to coerce self into other&quot; do
-    value = Complex(3, 9)
-    
-    obj = mock(&quot;Object&quot;)
-    obj.should_receive(:coerce).with(value).and_return([2, 5])
-    (value + obj).should == 2 + 5
</del><ins>+  describe &quot;Complex#+ with Object&quot; do
+    it_behaves_like(:complex_plus_object, :+)
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx">\ No newline at end of file
</span><ins>+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexpolar_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/polar_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/polar_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/polar_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,23 +1,14 @@
</span><del>-require File.dirname(__FILE__) + '/../../spec_helper'
-require 'complex'
</del><ins>+require File.dirname(__FILE__) + '/../../shared/complex/polar'
</ins><span class="cx"> 
</span><del>-describe &quot;Complex.polar&quot; do
-  it &quot;returns a complex number in terms of radius and angle&quot; do
-    Complex.polar(50, 60).should be_close(Complex(-47.6206490207578, -15.2405310551108), TOLERANCE)
-    Complex.polar(-10, -20).should be_close(Complex(-4.08082061813392, 9.12945250727628), TOLERANCE)
-  end
-end
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
</ins><span class="cx"> 
</span><del>-describe &quot;Complex#polar&quot; do
-  it &quot;returns the absolute value and the argument&quot; do
-    a = Complex(3, 4)
-    a.polar.size.should == 2
-    a.polar.first.should == 5.0
-    a.polar.last.should be_close(0.927295218001612, TOLERANCE)
</del><ins>+  require 'complex'
</ins><span class="cx"> 
</span><del>-    b = Complex(-3.5, 4.7)
-    b.polar.size.should == 2
-    b.polar.first.should be_close(5.86003412959345, TOLERANCE)
-    b.polar.last.should be_close(2.21088447955664, TOLERANCE)
</del><ins>+  describe &quot;Complex.polar&quot; do
+    it_behaves_like(:complex_polar, :polar)
</ins><span class="cx">   end
</span><ins>+
+  describe &quot;Complex#polar&quot; do
+    it_behaves_like(:complex_polar, :polar)
+  end
</ins><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexreal_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/real_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/real_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/real_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,11 +1,10 @@
</span><del>-require File.dirname(__FILE__) + '/../../spec_helper'
-require 'complex'
</del><ins>+require File.dirname(__FILE__) + '/../../shared/complex/real'
</ins><span class="cx"> 
</span><del>-describe &quot;Complex#real&quot; do
-  it &quot;returns the real part of self&quot; do
-    Complex(1, 0).real.should == 1
-    Complex(2, 1).real.should == 2
-    Complex(6.7, 8.9).real.should == 6.7
-    Complex(bignum_value, 3).real.should == bignum_value
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+  
+  require 'complex'
+
+  describe &quot;Complex#real&quot; do
+    it_behaves_like(:complex_real, :real)
</ins><span class="cx">   end
</span><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexsharedimagerb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/shared/image.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/shared/image.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/shared/image.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,5 +1,3 @@
</span><del>-require 'complex'
-
</del><span class="cx"> describe :complex_image, :shared =&gt; true do
</span><span class="cx">   it &quot;returns the imaginary part of self&quot; do
</span><span class="cx">     Complex(1, 0).send(@method).should == 0
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenlibrarycomplexto_s_specrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/library/complex/to_s_spec.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/library/complex/to_s_spec.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/library/complex/to_s_spec.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,29 +1,14 @@
</span><del>-require File.dirname(__FILE__) + '/../../spec_helper'
-require 'complex'
</del><ins>+require File.dirname(__FILE__) + '/../../shared/complex/to_s'
</ins><span class="cx"> 
</span><del>-describe &quot;Complex#to_s when self's real component is 0&quot; do
-  it &quot;returns only the imaginary component as String&quot; do
-    Complex(0, 5).to_s.should == &quot;5i&quot;
-    Complex(0, -3.2).to_s.should == &quot;-3.2i&quot;
-  end
-end
</del><ins>+ruby_version_is &quot;&quot;...&quot;1.9&quot; do
</ins><span class="cx"> 
</span><del>-describe &quot;Complex#to_s&quot; do
-  it &quot;returns self as String&quot; do
-    Complex(1, 5).to_s.should == &quot;1+5i&quot;
-    Complex(-2.5, 1.5).to_s.should == &quot;-2.5+1.5i&quot;
-    
-    Complex(1, -5).to_s.should == &quot;1-5i&quot;
-    Complex(-2.5, -1.5).to_s.should == &quot;-2.5-1.5i&quot;
</del><ins>+  require 'complex'
</ins><span class="cx"> 
</span><del>-    # Guard against the Mathn library
-    conflicts_with :Prime do
-      Complex(1, 0).to_s.should == &quot;1+0i&quot;
-      Complex(1, -0).to_s.should == &quot;1+0i&quot;
</del><ins>+  describe &quot;Complex#to_s when self's real component is 0&quot; do
+    it_behaves_like(:complex_to_s_0, :to_s)
+  end
</ins><span class="cx"> 
</span><del>-      # This is a bit weird, but it's what MRI does
-      Complex(1, 0.0).to_s.should == &quot;1+0.0i&quot;
-      Complex(1, -0.0).to_s.should == &quot;1+0.0i&quot;
-    end
</del><ins>+  describe &quot;Complex#to_s&quot; do
+    it_behaves_like(:complex_to_s, :to_s)
</ins><span class="cx">   end
</span><del>-end
</del><span class="cx">\ No newline at end of file
</span><ins>+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozensharedcomplexabsrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/shared/complex/abs.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/shared/complex/abs.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/shared/complex/abs.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,5 +1,4 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../spec_helper'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><span class="cx"> describe :complex_abs, :shared =&gt; true do
</span><span class="cx">   it &quot;returns the modulus: |a + bi| = sqrt((a ^ 2) + (b ^ 2))&quot; do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozensharedcomplexabs2rb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/shared/complex/abs2.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/shared/complex/abs2.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/shared/complex/abs2.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,5 +1,4 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../spec_helper'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><span class="cx"> describe :complex_abs2, :shared =&gt; true do
</span><span class="cx">   it &quot;returns the sum of the squares of the real and imaginary parts&quot; do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozensharedcomplexargrb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/shared/complex/arg.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/shared/complex/arg.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/shared/complex/arg.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,5 +1,3 @@
</span><del>-require 'complex'
-
</del><span class="cx"> describe :complex_arg, :shared =&gt; true do
</span><span class="cx">   it &quot;returns the argument -- i.e., the angle from (1, 0) in the complex plane&quot; do
</span><span class="cx">     TwoPi = 2 * Math::PI
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozensharedcomplexcoercerb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/shared/complex/coerce.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/shared/complex/coerce.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/shared/complex/coerce.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,6 +1,4 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../spec_helper'
</span><del>-require 'complex'
-require &quot;rational&quot;
</del><span class="cx"> 
</span><span class="cx"> describe :complex_coerce, :shared =&gt; true do
</span><span class="cx">   before(:each) do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozensharedcomplexconjugaterb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/shared/complex/conjugate.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/shared/complex/conjugate.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/shared/complex/conjugate.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,5 +1,3 @@
</span><del>-require 'complex'
-
</del><span class="cx"> describe :complex_conjugate, :shared =&gt; true do
</span><span class="cx">   it &quot;returns the complex conjugate: conj a + bi = a - bi&quot; do
</span><span class="cx">     Complex(3, 5).send(@method).should == Complex(3, -5)
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozensharedcomplexdividerb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/shared/complex/divide.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/shared/complex/divide.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/shared/complex/divide.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,5 +1,4 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../spec_helper'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><span class="cx"> describe :complex_divide_complex, :shared =&gt; true do
</span><span class="cx">   it &quot;divides according to the usual rule for complex numbers&quot; do
</span><span class="lines">@@ -46,9 +45,9 @@
</span><span class="cx">   end
</span><span class="cx"> 
</span><span class="cx">   ruby_version_is &quot;1.9&quot; do
</span><del>-    it &quot;returns (Infinity+Infinity*i) when given zero&quot; do
-      (Complex(20, 40) / 0.0).inspect.should == &quot;(Infinity+Infinity*i)&quot;
-      (Complex(-20, -40) / 0.0).inspect.should == &quot;(-Infinity-Infinity*i)&quot;
</del><ins>+    it &quot;raises a ZeroDivisionError when given 0.0&quot; do
+      lambda { Complex(20, 40) / 0.0 }.should raise_error(ZeroDivisionError)
+      lambda { Complex(-20, -40) / 0.0 }.should raise_error(ZeroDivisionError)
</ins><span class="cx">     end
</span><span class="cx">   end
</span><span class="cx"> end
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozensharedcomplexequal_valuerb"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/shared/complex/equal_value.rb (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/shared/complex/equal_value.rb        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/shared/complex/equal_value.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,5 +1,4 @@
</span><span class="cx"> require File.dirname(__FILE__) + '/../../spec_helper'
</span><del>-require 'complex'
</del><span class="cx"> 
</span><span class="cx"> describe :complex_equal_value_complex, :shared =&gt; true do
</span><span class="cx">   it &quot;returns true when self and other have numerical equality&quot; do
</span></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozensharedcomplexmodulorbfromrev1967MacRubybranchesexperimentalspecfrozenlibrarycomplexmodulo_specrb"></a>
<div class="copfile"><h4>Copied: MacRuby/branches/experimental/spec/frozen/shared/complex/modulo.rb (from rev 1967, MacRuby/branches/experimental/spec/frozen/library/complex/modulo_spec.rb) (0 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/shared/complex/modulo.rb                                (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/shared/complex/modulo.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+require File.dirname(__FILE__) + '/../../spec_helper'
+
+describe :complex_modulo_complex, :shared =&gt; true do
+  it &quot;returns the remainder from complex division&quot; do
+    (Complex(13, 44) % Complex(5, 20)).should == Complex(13 % 5, 44 % 20)
+    (Complex(13.5, 44.5) % Complex(5.5, 20.5)).should == Complex(13.5 % 5.5, 44.5 % 20.5)
+  end
+end
+
+describe :complex_modulo_integer, :shared =&gt; true do
+  it &quot;returns the remainder from dividing both parts of self by the given Integer&quot; do
+    (Complex(21, 42) % 10).should == Complex(21 % 10, 42 % 10)
+    (Complex(15.5, 16.5) % 2.0).should be_close(Complex(15.5 % 2, 16.5 % 2), TOLERANCE)
+  end
+end
+
+describe :complex_modulo_object, :shared =&gt; true do
+  it &quot;tries to coerce self into other&quot; do
+    value = Complex(3, 9)
+    
+    obj = mock(&quot;Object&quot;)
+    obj.should_receive(:coerce).with(value).and_return([2, 5])
+    (value % obj).should == 2 % 5
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozensharedcomplexmultiplyrbfromrev1967MacRubybranchesexperimentalspecfrozenlibrarycomplexmultiply_specrb"></a>
<div class="copfile"><h4>Copied: MacRuby/branches/experimental/spec/frozen/shared/complex/multiply.rb (from rev 1967, MacRuby/branches/experimental/spec/frozen/library/complex/multiply_spec.rb) (0 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/shared/complex/multiply.rb                                (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/shared/complex/multiply.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+
+describe :complex_multiply_complex, :shared =&gt; true do
+  it &quot;multiplies according to the usual rule for complex numbers: (a + bi) * (c + di) = ac - bd + (ad + bc)i&quot; do
+    (Complex(1, 2) * Complex(10, 20)).should == Complex((1 * 10) - (2 * 20), (1 * 20) + (2 * 10))
+    (Complex(1.5, 2.1) * Complex(100.2, -30.3)).should == Complex((1.5 * 100.2) - (2.1 * -30.3), (1.5 * -30.3) + (2.1 * 100.2))
+  end
+end
+
+describe :complex_multiply_integer, :shared =&gt; true do
+  it &quot;multiplies both parts of self by the given Integer&quot; do
+    (Complex(3, 2) * 50).should == Complex(150, 100)
+    (Complex(-3, 2) * 50.5).should == Complex(-151.5, 101)
+  end
+end
+
+describe :complex_multiply_object, :shared =&gt; true do
+  it &quot;tries to coerce self into other&quot; do
+    value = Complex(3, 9)
+    
+    obj = mock(&quot;Object&quot;)
+    obj.should_receive(:coerce).with(value).and_return([2, 5])
+    (value * obj).should == 2 * 5
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozensharedcomplexnumeratorrbfromrev1967MacRubybranchesexperimentalspecfrozenlibrarycomplexnumerator_specrb"></a>
<div class="copfile"><h4>Copied: MacRuby/branches/experimental/spec/frozen/shared/complex/numerator.rb (from rev 1967, MacRuby/branches/experimental/spec/frozen/library/complex/numerator_spec.rb) (0 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/shared/complex/numerator.rb                                (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/shared/complex/numerator.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+require File.dirname(__FILE__) + '/../../spec_helper'
+
+describe :complex_numerator, :shared =&gt; true do
+  it &quot;returns self's numerator&quot; do
+    Complex(2).numerator.should    == Complex(2)
+    Complex(3, 4).numerator.should == Complex(3, 4)
+    
+    Complex(Rational(3, 4), Rational(3, 4)).numerator.should == Complex(3, 3)
+    Complex(Rational(7, 4), Rational(8, 4)).numerator.should == Complex(7, 8)
+
+    Complex(Rational(7, 8), Rational(8, 4)).numerator.should == Complex(7, 16)
+    Complex(Rational(7, 4), Rational(8, 8)).numerator.should == Complex(7, 4)
+    
+    # NOTE:
+    # Bug? - Fails with a MethodMissingError
+    # (undefined method `denominator' for 3.5:Float)
+    # Complex(3.5, 3.7).numerator
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozensharedcomplexplusrbfromrev1967MacRubybranchesexperimentalspecfrozenlibrarycomplexplus_specrb"></a>
<div class="copfile"><h4>Copied: MacRuby/branches/experimental/spec/frozen/shared/complex/plus.rb (from rev 1967, MacRuby/branches/experimental/spec/frozen/library/complex/plus_spec.rb) (0 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/shared/complex/plus.rb                                (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/shared/complex/plus.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+require File.dirname(__FILE__) + '/../../spec_helper'
+
+describe :complex_plus_complex, :shared =&gt; true do
+  it &quot;adds both the real and imaginary components&quot; do
+    (Complex(1, 2) + Complex(10, 20)).should == Complex(1 + 10, 2 + 20)
+    (Complex(1.5, 2.1) + Complex(100.2, -30.3)).should == Complex(1.5 + 100.2, 2.1 + (-30.3))
+  end
+end
+
+describe :complex_plus_integer, :shared =&gt; true do
+  it &quot;adds the real number to the real component of self&quot; do
+    (Complex(1, 2) + 50).should == Complex(51, 2)
+    (Complex(1, 2) + 50.5).should == Complex(51.5, 2)
+  end
+end
+
+describe :complex_plus_object, :shared =&gt; true do
+  it &quot;tries to coerce self into other&quot; do
+    value = Complex(3, 9)
+    
+    obj = mock(&quot;Object&quot;)
+    obj.should_receive(:coerce).with(value).and_return([2, 5])
+    (value + obj).should == 2 + 5
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozensharedcomplexpolarrbfromrev1967MacRubybranchesexperimentalspecfrozenlibrarycomplexpolar_specrb"></a>
<div class="copfile"><h4>Copied: MacRuby/branches/experimental/spec/frozen/shared/complex/polar.rb (from rev 1967, MacRuby/branches/experimental/spec/frozen/library/complex/polar_spec.rb) (0 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/shared/complex/polar.rb                                (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/shared/complex/polar.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+require File.dirname(__FILE__) + '/../../spec_helper'
+
+describe :complex_polar_class, :shared =&gt; true do
+  it &quot;returns a complex number in terms of radius and angle&quot; do
+    Complex.polar(50, 60).should be_close(Complex(-47.6206490207578, -15.2405310551108), TOLERANCE)
+    Complex.polar(-10, -20).should be_close(Complex(-4.08082061813392, 9.12945250727628), TOLERANCE)
+  end
+end
+
+describe :complex_polar, :shared =&gt; true do
+  it &quot;returns the absolute value and the argument&quot; do
+    a = Complex(3, 4)
+    a.polar.size.should == 2
+    a.polar.first.should == 5.0
+    a.polar.last.should be_close(0.927295218001612, TOLERANCE)
+
+    b = Complex(-3.5, 4.7)
+    b.polar.size.should == 2
+    b.polar.first.should be_close(5.86003412959345, TOLERANCE)
+    b.polar.last.should be_close(2.21088447955664, TOLERANCE)
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozensharedcomplexrealrbfromrev1967MacRubybranchesexperimentalspecfrozenlibrarycomplexreal_specrb"></a>
<div class="copfile"><h4>Copied: MacRuby/branches/experimental/spec/frozen/shared/complex/real.rb (from rev 1967, MacRuby/branches/experimental/spec/frozen/library/complex/real_spec.rb) (0 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/shared/complex/real.rb                                (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/shared/complex/real.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+describe :complex_real, :shared =&gt; true do
+  it &quot;returns the real part of self&quot; do
+    Complex(1, 0).real.should == 1
+    Complex(2, 1).real.should == 2
+    Complex(6.7, 8.9).real.should == 6.7
+    Complex(bignum_value, 3).real.should == bignum_value
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozensharedcomplexto_srb"></a>
<div class="addfile"><h4>Added: MacRuby/branches/experimental/spec/frozen/shared/complex/to_s.rb (0 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/shared/complex/to_s.rb                                (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/shared/complex/to_s.rb        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+require File.dirname(__FILE__) + '/../../spec_helper'
+
+describe :complex_to_s_0, :shared =&gt; true do
+  ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+    it &quot;returns only the imaginary component as String&quot; do
+      Complex(0, 5).to_s.should == &quot;5i&quot;
+      Complex(0, -3.2).to_s.should == &quot;-3.2i&quot;
+    end
+  end
+
+  ruby_version_is &quot;1.9&quot; do
+    it &quot;returns both the real and imaginary component even when the real is 0&quot; do
+      Complex(0, 5).to_s.should == &quot;0+5i&quot;
+      Complex(0, -3.2).to_s.should == &quot;0-3.2i&quot;
+    end
+  end
+end
+
+describe :complex_to_s, :shared =&gt; true do
+  it &quot;returns self as String&quot; do
+    Complex(1, 5).to_s.should == &quot;1+5i&quot;
+    Complex(-2.5, 1.5).to_s.should == &quot;-2.5+1.5i&quot;
+    
+    Complex(1, -5).to_s.should == &quot;1-5i&quot;
+    Complex(-2.5, -1.5).to_s.should == &quot;-2.5-1.5i&quot;
+
+    # Guard against the Mathn library
+    conflicts_with :Prime do
+      Complex(1, 0).to_s.should == &quot;1+0i&quot;
+      Complex(1, -0).to_s.should == &quot;1+0i&quot;
+
+      ruby_version_is &quot;&quot;...&quot;1.9&quot; do
+        # This is a bit weird, but it's what MRI does
+        Complex(1, 0.0).to_s.should == &quot;1+0.0i&quot;
+        Complex(1, -0.0).to_s.should == &quot;1+0.0i&quot;
+      end
+    end
+  end
+end
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozentags19corecomplexmodulo_tagstxt"></a>
<div class="addfile"><h4>Added: MacRuby/branches/experimental/spec/frozen/tags/1.9/core/complex/modulo_tags.txt (0 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/tags/1.9/core/complex/modulo_tags.txt                                (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/1.9/core/complex/modulo_tags.txt        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+fails:Complex#% with Complex returns the remainder from complex division
+fails:Complex#% with Integer returns the remainder from dividing both parts of self by the given Integer
+fails:Complex#% with Object tries to coerce self into other
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozentagsmacrubycorefloatcomparison_tagstxt"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/comparison_tags.txt (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/comparison_tags.txt        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/comparison_tags.txt        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><span class="cx"> fails:Float#&lt;=&gt; returns 1 when self is Infinity and other is a Bignum
</span><del>-fails:Float#&lt;=&gt; returns 1 when self is negative and other is Infinty
</del><ins>+fails:Float#&lt;=&gt; returns -1 when self is negative and other is Infinty
</ins><span class="cx"> fails:Float#&lt;=&gt; returns 1 when self is Infinity and other is a Bignum
</span><del>-fails:Float#&lt;=&gt; returns 1 when self is negative and other is Infinty
</del><ins>+fails:Float#&lt;=&gt; returns -1 when self is negative and other is Infinty
</ins></span></pre></div>
<a id="MacRubybranchesexperimentalspecfrozenupstream"></a>
<div class="modfile"><h4>Modified: MacRuby/branches/experimental/spec/frozen/upstream (1967 => 1968)</h4>
<pre class="diff"><span>
<span class="info">--- MacRuby/branches/experimental/spec/frozen/upstream        2009-07-01 23:51:15 UTC (rev 1967)
+++ MacRuby/branches/experimental/spec/frozen/upstream        2009-07-01 23:53:26 UTC (rev 1968)
</span><span class="lines">@@ -1 +1 @@
</span><del>-6f75d0c5ce0edb5437e84f59eda4a9dce4a39a2d
</del><span class="cx">\ No newline at end of file
</span><ins>+8a452e68e5b045a20ce1964fa997f9d691316b1c
</ins><span class="cx">\ No newline at end of file
</span></span></pre>
</div>
</div>

</body>
</html>