t.set( 10, LuaValue.NIL );
assertEquals( 0, t.keyCount() );
}
public void testRemove2() {
LuaTable t = new_Table(0, 1);
t.set( "test", LuaString.valueOf("foo") );
t.set( "string", LuaInteger.valueOf( 10 ) );
assertEquals( 2, t.keyCount() );
t.set( "string", LuaValue.NIL );
t.set( "three", LuaDouble.valueOf( 3.14 ) );
assertEquals( 2, t.keyCount() );
t.set( "test", LuaValue.NIL );
assertEquals( 1, t.keyCount() );
t.set( 10, LuaInteger.valueOf( 5 ) );
assertEquals( 2, t.keyCount() );
t.set( 10, LuaValue.NIL );
assertEquals( 1, t.keyCount() );
t.set( "three", LuaValue.NIL );
assertEquals( 0, t.keyCount() );
}