Guest User

Untitled

a guest
Dec 10th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. import streams
  2.  
  3. var ss = newStringStream("")
  4. ss.write("hello")
  5. assert ss.getposition == len(ss.data)
  6. ss.setPosition(len(ss.data))
  7. if ss.getPosition != len(ss.data):
  8. echo("omg what?")
  9. ss.write("olleh")
  10. if ss.data != "helloolleh":
  11. echo("-__-")
  12. echo(repr(ss))
Add Comment
Please, Sign In to add comment