forked from nus-cs2103-AY2324S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from AY2324S2-CS2103-F08-4/revert-115-master
Revert "Fix Tests"
- Loading branch information
Showing
13 changed files
with
26 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,8 +92,6 @@ Examples: | |
* `add n/John Doe p/98765432 e/[email protected] a/John street, block 123, #01-01` | ||
* `add n/Betsy Crowe e/[email protected] a/Newgate Prison p/1234567 t/Saturday 5pm-7pm g/ca1: 2 g/ca2: 80` | ||
|
||
Refer to the [Accepted Parameters](#accepted-parameters) below for details of each command. | ||
|
||
### Listing all students : `list` | ||
|
||
Shows a list of all students in the address book. | ||
|
@@ -118,8 +116,6 @@ Examples: | |
* `edit 1 !p` will display `edit 1 phone: {current phone number}`, prompting user to make changes to the phone number of the 1st student. | ||
* `edit 2 !g` will display `edit 2 grade: {current grades}`, prompting user to modify (add/edit/delete) grades of the 2nd student. | ||
|
||
Refer to the [Accepted Parameters](#accepted-parameters) below for details of each command. | ||
|
||
### Locating students by name: `find` | ||
|
||
Finds students whose names contain any of the given keywords. | ||
|
@@ -224,17 +220,7 @@ Furthermore, certain edits can cause TutorTrack to behave in unexpected ways (e. | |
1. **When using multiple screens**, if you move the application to a secondary screen, and later switch to using only the primary screen, the GUI will open off-screen. The remedy is to delete the `preferences.json` file created by the application before running the application again. | ||
|
||
-------------------------------------------------------------------------------------------------------------------- | ||
## Accepted Parameters | ||
| Prefix | Stands for | Length | Accepted Characters | | ||
|--------------|------------------------------------------------------------------------------------------------------------|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| **n/ or !n** | name | 1 - 80 | Must start with a letter, followed by any combinations of letters, spaces, `'`, "/", "\", "," and `-`, and end with a letter. Letters can be of any language. | | ||
| **p/ or !p** | Singapore phone number beginning with `6`, `8` or `9` | 8 | Must start with a `6`, `8` or `9` and only contain numbers. | | ||
| **e/ or !e** | Email | - | Must be of the format: `local-part@domain`. <br/> Local part should start with a alphanumeric character, only contain alphanumeric characters and `+`, `_`. `.`. `-` <br/> This is followed by a '@' and then a domain name. The domain name is made up of domain labels separated by periods. The domain name must end with a domain label at least 2 characters long, have each domain label start and end with alphanumeric characters, have each domain label consist of alphanumeric characters separated only by hyphens, if any. | | ||
| **a/ or !a** | Address | 100 | Can take any value. | | | ||
| **t/ or !t** | Timeslot | - | Timeslot should be of the format: `DayOfWeek StartTime-EndTime`. <br/> The DayOfWeek is any day from Monday to Sunday. <br/> StartTime and EndTime include hours and optional minutes in 12-hour format, StartTime must be earlier than EndTime. Minutes, if included, should be separated from hours by a colon. | | | ||
| **g/ or !g** | TestName and Grade. Grade represents the percentage gotten in the test rounded to the nearest whole number | - | Grades should be of the format `TestName: Grade` <br/> The TestName should not be empty. This is followed by a `: ` and then a grade which must be a whole number between [0, 100] | | ||
| **r/** | Reverse the order of sort | - | Does not require any input after prefix | | | ||
-------------------------------------------------------------------------------------------------------------------- | ||
|
||
## Command summary | ||
|
||
| Action | Format, Examples | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,21 +30,21 @@ | |
"grades": [ ] | ||
}, { | ||
"name" : "Elle Meyer", | ||
"phone" : "94822243", | ||
"phone" : "9482224", | ||
"email" : "[email protected]", | ||
"address" : "michegan ave", | ||
"timeslots" : [ ], | ||
"grades": [ ] | ||
}, { | ||
"name" : "Fiona Kunz", | ||
"phone" : "94824273", | ||
"phone" : "9482427", | ||
"email" : "[email protected]", | ||
"address" : "little tokyo", | ||
"timeslots" : [ ], | ||
"grades": [ ] | ||
}, { | ||
"name" : "George Best", | ||
"phone" : "64824421", | ||
"phone" : "9482442", | ||
"email" : "[email protected]", | ||
"address" : "4th street", | ||
"timeslots" : [ ], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,8 +35,8 @@ public class CommandTestUtil { | |
|
||
public static final String VALID_NAME_AMY = "Amy Bee"; | ||
public static final String VALID_NAME_BOB = "Bob Choo"; | ||
public static final String VALID_PHONE_AMY = "68686868"; | ||
public static final String VALID_PHONE_BOB = "88888888"; | ||
public static final String VALID_PHONE_AMY = "11111111"; | ||
public static final String VALID_PHONE_BOB = "22222222"; | ||
public static final String VALID_EMAIL_AMY = "[email protected]"; | ||
public static final String VALID_EMAIL_BOB = "[email protected]"; | ||
public static final String VALID_ADDRESS_AMY = "Block 312, Amy Street 1"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ public class ParserUtilTest { | |
private static final String INVALID_TIMESLOT = "Moonday"; | ||
|
||
private static final String VALID_NAME = "Rachel Walker"; | ||
private static final String VALID_PHONE = "98765432"; | ||
private static final String VALID_PHONE = "123456"; | ||
private static final String VALID_ADDRESS = "123 Main Street #0505"; | ||
private static final String VALID_EMAIL = "[email protected]"; | ||
private static final String VALID_TIMESLOT_1 = "Monday 3pm-5pm"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,7 @@ public void test_nameDoesNotContainKeywords_returnsFalse() { | |
|
||
// Keywords match phone, email and address, but does not match name | ||
predicate = new NameContainsKeywordsPredicate(Arrays.asList("12345", "[email protected]", "Main", "Street")); | ||
assertFalse(predicate.test(new StudentBuilder().withName("Alice").withPhone("99912345") | ||
assertFalse(predicate.test(new StudentBuilder().withName("Alice").withPhone("12345") | ||
.withEmail("[email protected]").withAddress("Main Street").build())); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,17 +40,17 @@ public class TypicalStudents { | |
.withEmail("[email protected]").withAddress("wall street").build(); | ||
public static final Student DANIEL = new StudentBuilder().withName("Daniel Meier").withPhone("87652533") | ||
.withEmail("[email protected]").withAddress("10th street").withTimeslots("Tuesday 7pm-9pm").build(); | ||
public static final Student ELLE = new StudentBuilder().withName("Elle Meyer").withPhone("94822243") | ||
public static final Student ELLE = new StudentBuilder().withName("Elle Meyer").withPhone("9482224") | ||
.withEmail("[email protected]").withAddress("michegan ave").build(); | ||
public static final Student FIONA = new StudentBuilder().withName("Fiona Kunz").withPhone("94824273") | ||
public static final Student FIONA = new StudentBuilder().withName("Fiona Kunz").withPhone("9482427") | ||
.withEmail("[email protected]").withAddress("little tokyo").build(); | ||
public static final Student GEORGE = new StudentBuilder().withName("George Best").withPhone("64824421") | ||
public static final Student GEORGE = new StudentBuilder().withName("George Best").withPhone("9482442") | ||
.withEmail("[email protected]").withAddress("4th street").build(); | ||
|
||
// Manually added | ||
public static final Student HOON = new StudentBuilder().withName("Hoon Meier").withPhone("84824242") | ||
public static final Student HOON = new StudentBuilder().withName("Hoon Meier").withPhone("8482424") | ||
.withEmail("[email protected]").withAddress("little india").build(); | ||
public static final Student IDA = new StudentBuilder().withName("Ida Mueller").withPhone("84821313") | ||
public static final Student IDA = new StudentBuilder().withName("Ida Mueller").withPhone("8482131") | ||
.withEmail("[email protected]").withAddress("chicago ave").build(); | ||
|
||
// Manually added - student's details found in {@code CommandTestUtil} | ||
|