AK: Fix typo in the WeakPtr test. Behavior was actually correct.

Also remove an unused variable.
This commit is contained in:
Andreas Kling 2019-08-02 09:21:24 +02:00
parent 4e59300650
commit 31793b8f3a
Notes: sideshowbarker 2024-07-19 12:56:56 +09:00

View file

@ -3,10 +3,6 @@
#include <AK/Weakable.h>
#include <AK/WeakPtr.h>
namespace AK{
int g_weaklinks = 0;
}
class SimpleWeakable : public Weakable<SimpleWeakable> {
public:
SimpleWeakable() {}
@ -49,7 +45,7 @@ TEST_CASE(weakptr_move)
EXPECT_EQ(weak2.ptr(), &simple);
}
EXPECT_EQ(weak2.is_null(), false);
EXPECT_EQ(weak2.is_null(), true);
fprintf(stderr, "ok\n");
}