Skip to content

Commit

Permalink
fix wrong expected value for source of status in rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
seiya committed Apr 21, 2011
1 parent 1304f54 commit 9496242
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/ruby-mpi_spec.rb
Expand Up @@ -32,7 +32,7 @@
world.size.times do |i|
str = " "*30
status = world.Recv(str, i, tag)
status.source.should eql(0)
status.source.should eql(i)
status.tag.should eql(tag)
status.error.should eq(MPI::SUCCESS)
str.should match(/\AHello from #{i}+/)
Expand All @@ -50,7 +50,7 @@
world.size.times do |i|
ary1 = NArray.new(ary0.typecode, ary0.total)
status = world.Recv(ary1, i, tag)
status.source.should eql(0)
status.source.should eql(i)
status.tag.should eql(tag)
status.error.should eq(MPI::SUCCESS)
ary1.should == ary0
Expand Down

0 comments on commit 9496242

Please sign in to comment.