diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-03-30 11:22:55 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-05-01 10:45:34 -0700 |
commit | f997529cd4fb077b06d05da9c6ff0c23b85b4ebb (patch) | |
tree | 56817cf6faba1e4dac8f7cd515651e79a02fa62b /tests/Task_test.cpp | |
parent | ae75585b52078ca6d89b4014668c08d9aea4a17b (diff) | |
download | PrismLauncher-f997529cd4fb077b06d05da9c6ff0c23b85b4ebb.tar.gz PrismLauncher-f997529cd4fb077b06d05da9c6ff0c23b85b4ebb.tar.bz2 PrismLauncher-f997529cd4fb077b06d05da9c6ff0c23b85b4ebb.zip |
feat: better task tracking
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'tests/Task_test.cpp')
-rw-r--r-- | tests/Task_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Task_test.cpp b/tests/Task_test.cpp index 95eb4a30..678382ba 100644 --- a/tests/Task_test.cpp +++ b/tests/Task_test.cpp @@ -99,7 +99,7 @@ class TaskTest : public QObject { t.setStatus(status); QCOMPARE(t.getStatus(), status); - QCOMPARE(t.getStepStatus(), status); + QCOMPARE(t.getStepProgress().isEmpty(), QList<TaskStepProgress>{}.isEmpty()); } void test_SetStatus_MultiStep(){ @@ -111,7 +111,7 @@ class TaskTest : public QObject { QCOMPARE(t.getStatus(), status); // Even though it is multi step, it does not override the getStepStatus method, // so it should remain the same. - QCOMPARE(t.getStepStatus(), status); + QCOMPARE(t.getStepProgress().isEmpty(), QList<TaskStepProgress>{}.isEmpty()); } void test_SetProgress(){ |