From ea96919d9e063d63fa3245c18dc7c7558660b442 Mon Sep 17 00:00:00 2001 From: Tanish Parekh Date: Thu, 20 Nov 2025 13:45:32 +0530 Subject: [PATCH] Changed the code --- README.md | 10 ++-------- tests/todo_tests.cpp | 6 +++--- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index d17f05c..8260a23 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,8 @@ This is a simple command-line to-do application written in C++. It allows users to manage their tasks efficiently through a straightforward interface. -## Features - -- Add tasks to your to-do list -- Remove tasks from your to-do list -- List all tasks -- Load and save tasks to a file ## Quick Start - 1. Clone the repository: ``` git clone https://github.com/yourusername/cpp-todo-cli.git @@ -38,4 +31,5 @@ We welcome contributions! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) file ## License -This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. \ No newline at end of file +This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. +#Contributor : Tanish Parekh diff --git a/tests/todo_tests.cpp b/tests/todo_tests.cpp index 1913228..72eef0b 100644 --- a/tests/todo_tests.cpp +++ b/tests/todo_tests.cpp @@ -18,12 +18,12 @@ void testRemoveTask() { void testListTasks() { TodoList todoList; - todoList.addTask("Test task 1"); todoList.addTask("Test task 2"); + todoList.addTask("Test task 1"); std::vector tasks = todoList.getTasks(); assert(tasks.size() == 2); - assert(tasks[0] == "Test task 1"); - assert(tasks[1] == "Test task 2"); + assert(tasks[0] == "Test task 2"); + assert(tasks[1] == "Test task 1"); } int main() {