require "Phi"

form = Phi::Form.new

lv = Phi::ListView.new form
p lv.items                  #=> #<Phi::ListItems:0x142db08>
p item = lv.items.add       #=> #<Phi::ListItem:0x142c728>
p lv.items[0]               #=> #<Phi::ListItem:0x142c728>
p lv.items[0].data          #=> false
p item.data = 123           #=> 123
p item.data                 #=> 123
p lv.items[0].data          #=> 123

p lv.items.delete(0)        #=> #<Phi::ListItem:0x142c728>
# p lv.items.clear          #=> #<Phi::ListItem:0x142c728>
p lv.items.count            #=> 0
p item                      #=> #<Phi::ListItem:0x142c728>
p lv.items[0]               #=> nil
p item.data                 #=> Zombie (IndexError)
