Test reverse.

toying-with-ramdb
Philippe PITTOLI 2024-05-26 01:41:49 +02:00
parent b52ef159e4
commit ea6017a1c9
2 changed files with 7 additions and 1 deletions

View File

@ -48,4 +48,10 @@ describe "DoubleLinkedList" do
list.size.should eq 0 list.size.should eq 0
end end
it "reverse" do
list = DoubleLinkedList(Int32).new
list << 1 << 2 << 3 << 4
list.reverse.to_s.should eq "[ 4, 3, 2, 1 ]"
end
end end