diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-02 09:21:24 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-02 09:21:42 +0200 |
commit | 31793b8f3aaaa684134003a891ac642a5ed264a2 (patch) | |
tree | 712113ef33434f073bd10151f97b7861980b3b9a | |
parent | 4e593006503fce1ef12a6eb3390c65e01256e766 (diff) | |
download | serenity-31793b8f3aaaa684134003a891ac642a5ed264a2.zip |
AK: Fix typo in the WeakPtr test. Behavior was actually correct.
Also remove an unused variable.
-rw-r--r-- | AK/Tests/TestWeakPtr.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/AK/Tests/TestWeakPtr.cpp b/AK/Tests/TestWeakPtr.cpp index f3145544ef..2a59e88fff 100644 --- a/AK/Tests/TestWeakPtr.cpp +++ b/AK/Tests/TestWeakPtr.cpp @@ -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"); } |