diff options
author | Josh Haberman <jhaberman@gmail.com> | 2017-01-21 10:47:58 -0800 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2017-01-21 10:47:58 -0800 |
commit | 47da2afd52b0f108085439e3dc8ad5236809fbae (patch) | |
tree | cc35bd4029e6204b43062e6b5788c4337f2d49e5 /tests/bindings/lua | |
parent | c850bc0a4e62c1c9c21c1f6cfe3b8293e64831cf (diff) |
Make upb::SymbolTable no longer reference-counted.
This transitions it from shared ownership to unique
ownership.
Diffstat (limited to 'tests/bindings/lua')
-rw-r--r-- | tests/bindings/lua/test_upb.lua | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/bindings/lua/test_upb.lua b/tests/bindings/lua/test_upb.lua index 65439bc..261328d 100644 --- a/tests/bindings/lua/test_upb.lua +++ b/tests/bindings/lua/test_upb.lua @@ -401,17 +401,6 @@ function test_symtab() local msgdef3 = symtab:lookup("ContainingMessage2") assert_not_nil(msgdef3) assert_equal(msgdef3:field("field5"):subdef(), msgdef2) - - -- Freeze the symtab and verify that mutating operations are not allowed. - assert_false(symtab:is_frozen()) - symtab:freeze() - assert_true(symtab:is_frozen()) - assert_error_match("frozen", function() symtab:freeze() end) - assert_error_match("frozen", function() - symtab:add{ - upb.MessageDef{full_name = "Foo"} - } - end) end function test_symtab_add_extension() |