<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -32,17 +32,19 @@ class UserTests &lt; Test::Unit::TestCase
 
   def test_get_operand_list
     olist = @ins[0].get_operand_list
-    puts &quot;===&gt; #{olist}&quot;
+    assert_equal(2, olist.size)
   end
 
   def test_number_of_operands
-    assert(2, @ins[0].get_num_operands)  # shl instruction
-    assert(1, @ins[7].get_num_operands)  # ret instruction
+    assert_equal(2, @ins[0].get_num_operands)  # shl instruction
+    assert_equal(1, @ins[7].get_num_operands)  # ret instruction
   end
 
   # TODO: find a way for testing this function
   def test_get_operand
-    puts &quot;#{@ins[0].get_operand(0)}&quot; ## FIXME: add real check!
+    op0 = @ins[0].get_operand(0)
+    op1 = @ins[1].get_operand(1)
+    assert_equal(&quot;x&quot;,op0.name)
   end
 
   def test_set_operand</diff>
      <filename>test/test_user.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3e1df2115c5e52667bf0aa946867a42b47dc0d7d</id>
    </parent>
  </parents>
  <author>
    <name>Christian Plessl</name>
    <login>plessl</login>
    <email>christian@plesslweb.ch</email>
  </author>
  <url>http://github.com/tombagby/llvmruby/commit/277de214623f9378b84bf6316576aa04dbbeb042</url>
  <id>277de214623f9378b84bf6316576aa04dbbeb042</id>
  <committed-date>2008-11-14T05:39:06-08:00</committed-date>
  <authored-date>2008-11-14T05:39:06-08:00</authored-date>
  <message>Fixed incorrect use of assertions in unit test.</message>
  <tree>c3d8e044aab47bd5e57815222982d0ae9a78310c</tree>
  <committer>
    <name>Christian Plessl</name>
    <login>plessl</login>
    <email>christian@plesslweb.ch</email>
  </committer>
</commit>
