mirror of
https://github.com/vidarh/ruby-x11
synced 2024-12-26 09:59:02 +01:00
Started bringing tests up to date
This commit is contained in:
parent
84f4f37258
commit
2d820a5600
1 changed files with 6 additions and 6 deletions
|
@ -43,8 +43,8 @@ describe X11::Form::BaseForm do
|
||||||
parent.name = "Parent Form"
|
parent.name = "Parent Form"
|
||||||
parent.point = Point.new(0,0)
|
parent.point = Point.new(0,0)
|
||||||
|
|
||||||
parent.point.must_be_instance_of Point
|
_(parent.point).must_be_instance_of Point
|
||||||
parent.name.must_equal "Parent Form"
|
_(parent.name).must_equal "Parent Form"
|
||||||
|
|
||||||
parent.children = []
|
parent.children = []
|
||||||
parent.children << Child.new
|
parent.children << Child.new
|
||||||
|
@ -58,9 +58,9 @@ describe X11::Form::BaseForm do
|
||||||
socket = MockSocket.new(parent.to_packet)
|
socket = MockSocket.new(parent.to_packet)
|
||||||
|
|
||||||
decoded = Parent.from_packet(socket)
|
decoded = Parent.from_packet(socket)
|
||||||
decoded.value.must_equal 255
|
_(decoded.value).must_equal 255
|
||||||
decoded.name.must_equal "Parent Form"
|
_(decoded.name).must_equal "Parent Form"
|
||||||
decoded.point.x.must_equal 23
|
_(decoded.point.x).must_equal 23
|
||||||
decoded.point.y.must_equal 17
|
_(decoded.point.y).must_equal 17
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue