From 0a208b3d90f443266a73b0855b4c53c4aca5da86 Mon Sep 17 00:00:00 2001 From: Lord Turmoil Date: Sat, 30 Nov 2024 18:08:25 +0800 Subject: [PATCH] update: bump version fix: test failure --- CMakeLists.txt | 2 +- tests/AssignmentTest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fe6400e..e33d5aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ set(BINARY_NAME "mioc") set(CMAKE_CXX_STANDARD 11) project(${PROJECT_NAME} - VERSION 1.2.1 + VERSION 1.2.3 DESCRIPTION "A mini IoC implementation with C++" LANGUAGES CXX) diff --git a/tests/AssignmentTest.cpp b/tests/AssignmentTest.cpp index ebfae91..64c8b01 100644 --- a/tests/AssignmentTest.cpp +++ b/tests/AssignmentTest.cpp @@ -30,7 +30,7 @@ TEST_CASE("Assignment") // Move container. mioc::ServiceContainerPtr containerC = mioc::ServiceContainer::New(); - *containerC = std::move(*containerA); + *containerC = std::move(*containerB); CHECK_EQ(containerC->Resolve()->ToString(), a1->ToString()); CHECK_EQ(containerC->Resolve()->ToString(), b1->ToString()); CHECK_EQ(containerC->Resolve(), nullptr);