From 627874cefb23c87d4011fafaee9865e324146cba Mon Sep 17 00:00:00 2001 From: yyyaohhh Date: Mon, 23 Oct 2023 23:09:07 +0800 Subject: [PATCH] Update DG with commands --- docs/DeveloperGuide.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/docs/DeveloperGuide.md b/docs/DeveloperGuide.md index 17ed8e77788..df406ed589e 100644 --- a/docs/DeveloperGuide.md +++ b/docs/DeveloperGuide.md @@ -429,7 +429,7 @@ testers are expected to do more *exploratory* testing. 1. Deleting a module from a semester while all modules are being shown - 1. Prerequisites: List all modules using the `list` command. Multiple module in the list. + 1. Prerequisites: List all modules using the `list` command. Multiple modules in the list. 1. Test case: `delete CS2030S`
Expected: The module CS2030S is deleted from the list. Details of the deleted module shown in the status message. The modules shown in the semester list is updated. @@ -442,6 +442,34 @@ testers are expected to do more *exploratory* testing. 1. _{ more test cases …​ }_ +### Calculating total CAP + +1. Calculating the current CAP from all modules + + 1. Prerequisites: Multiple module in the list. + + 1. Test case: `calculateCAP`
+ Expected: The CAP output is a `float` of `0.0` $\leq$ CAP $\leq$ `5.0` with a status message. + + 1. Test case: `calculateCAP` when there are no modules in the semester list
+ Expected: The CAP output is `0.0` + +1. _{ more test cases …​ }_ + +### Calculating total Modular Credits (MCs) + +1. Calculating the current Modular Credits (MCs) from all modules + + 1. Prerequisites: Multiple modules in the list. + + 1. Test case: `calculateMC`
+ Expected: The MC output is a `integer` of MC $\geq$ `0` with a status message. + + 1. Test case: `calculateMC` when there are no modules in the semester list
+ Expected: The MC output is `0` + +1. _{ more test cases …​ }_ + ### Saving data 1. Dealing with missing/corrupted data files