PageRenderTime 46ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/ruby/argout_runme.rb

#
Ruby | 42 lines | 22 code | 9 blank | 11 comment | 5 complexity | 8532955ada7f0a1c406e6e512aa97077 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. #!/usr/bin/env ruby
  2. #
  3. # Put script description here.
  4. #
  5. #
  6. #
  7. #
  8. #
  9. require 'swig_assert'
  10. require 'argout'
  11. include Argout
  12. swig_assert_each_line(<<'EOF', binding)
  13. t = new_intp
  14. intp_assign(t, 5)
  15. v = incp(t)
  16. val = intp_value(t)
  17. val == 6
  18. t = new_intp
  19. intp_assign(t, 5)
  20. v = incr(t)
  21. v == 5
  22. val = intp_value(t)
  23. val == 6
  24. t = new_intp
  25. intp_assign(t, 5)
  26. v = inctr(t)
  27. v == 5
  28. val = intp_value(t)
  29. val == 6
  30. EOF
  31. #
  32. # @todo: how to use voidhandle and handle?
  33. #