Debian Codegraph @

test/-ext-/st/test_foreach.rb

raw
1 # frozen_string_literal: false
2 require 'test/unit'
3 require '-test-/st/foreach'
4
5 class Test_StForeachUnpack < Test::Unit::TestCase
6 def test_st_foreach_check_unpack
7 assert_nil Bug.unp_st_foreach_check(:check), "goto unpacked_continue"
8 assert_nil Bug.unp_st_foreach_check(:delete1), "goto unpacked"
9 assert_nil Bug.unp_st_foreach_check(:delete2), "goto deleted"
10 end
11
12 def test_st_foreach_unpack
13 assert_nil Bug.unp_st_foreach(:unpacked), "goto unpacked"
14 assert_nil Bug.unp_st_foreach(:unpack_delete), "if (!ptr) return 0"
15 end
16 end