<html>
<head>
<style><!--
body {background-color:#ffffff;}
.file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
.pathname {font-family:monospace; float:right;}
.fileheader {margin-bottom:.5em;}
.diff {margin:0;}
.tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
.tasklist ul {margin-top:0;margin-bottom:0;}
tr.alt {background-color:#eeeeee}
#added {background-color:#ddffdd;}
#addedchars {background-color:#99ff99;font-weight:bolder;}
tr.alt #added {background-color:#ccf7cc;}
#removed {background-color:#ffdddd;}
#removedchars {background-color:#ff9999;font-weight:bolder;}
tr.alt #removed {background-color:#f7cccc;}
#info {color:#888888;}
#context {background-color:#eeeeee;}
td {padding-left:.3em;padding-right:.3em;}
tr.head {border-bottom-width:1px;border-bottom-style:solid;}
tr.head td {padding:0;padding-top:.2em;}
.task {background-color:#ffff00;}
.comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
.error {color:red;}
hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>trunk/as2api</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">tc_doc_comment.rb</a></tt></td><td align="right" id="added">+4</td><td align="right" id="removed">-3</td><td nowrap="nowrap" align="center">263 -> 264</td></tr>
</table>
<pre class="comment">
Assert that the has_xxx?() methods work, while we're at it
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname">trunk/as2api</span><br />
<div class="fileheader"><big><b>tc_doc_comment.rb</b></big> <small id="info">263 -> 264</small></div>
<pre class="diff"><small id="info">--- trunk/as2api/tc_doc_comment.rb        2006-01-05 21:48:42 UTC (rev 263)
+++ trunk/as2api/tc_doc_comment.rb        2006-01-05 21:56:51 UTC (rev 264)
@@ -12,6 +12,7 @@
</small></pre><pre class="diff" id="context"> def test_params()
text = "*\n * @param foo bar\n blat ping pong\n *"
comment_data = parse_it(text)
</pre><pre class="diff" id="added">+ assert(comment_data.has_params?, "should have @param tag")
</pre><pre class="diff" id="context"> expected = ParamBlockTag.new();
expected.param_name = "foo"
expected.add_inline("bar\n blat ping pong\n")
</pre><pre class="diff"><small id="info">@@ -21,6 +22,7 @@
</small></pre><pre class="diff" id="context"> def test_return()
text = "*\n * @return foo bar\n blat\n *"
comment_data = parse_it(text)
</pre><pre class="diff" id="added">+ assert(comment_data.has_return?, "should have @return tag")
</pre><pre class="diff" id="context"> expected = ReturnBlockTag.new();
expected.add_inline(" foo bar\n blat\n")
assert_equal(expected, comment_data[1])
</pre><pre class="diff"><small id="info">@@ -29,9 +31,7 @@
</small></pre><pre class="diff" id="context"> def test_see()
text = "*\n * @see foo bar\n blat\n *"
comment_data = parse_it(text)
</pre><pre class="diff" id="removed">- expected = BlockTag.new
- expected.add_inline("\n ")
- assert_equal(expected, comment_data[0])
</pre><pre class="diff" id="added">+ assert(comment_data.has_seealso?, "should have @see tag")
</pre><pre class="diff" id="context"> expected = SeeBlockTag.new
expected.add_inline("foo bar\nblat")
assert_equal(expected, comment_data[1])
</pre><pre class="diff"><small id="info">@@ -41,6 +41,7 @@
</small></pre><pre class="diff" id="context"> def test_throws()
text = "*\n * @throws foo.Bbar blat\nping\n *"
comment_data = parse_it(text)
</pre><pre class="diff" id="added">+ assert(comment_data.has_exceptions?, "should have @throws tag")
</pre><pre class="diff" id="context"> expected = ThrowsBlockTag.new();
expected.add_inline("blat\nping")
assert(expected, comment_data[1])
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -> email">CVSspam</a> 0.2.11</small></center>
</body></html>