-
Notifications
You must be signed in to change notification settings - Fork 1
/
at1.inst.txt
65 lines (65 loc) · 2.23 KB
/
at1.inst.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
list_groups -- no registered groups yet
list_users -- no registered users yet
add_user(0, "aaa") -- id must be positive
add_user(1, "") -- name is not valid
add_user(1, "Dr. Dolittle")
add_user(1, "Dr. Lecter") -- id is taken
add_user(2, "Dr. Frankenstein")
add_user(3, "Dr. Rieux")
add_user(4, "Dr. Higgins")
add_user(5, "Florence Nightingale")
add_user(6, "Mary Todd Lincoln")
add_user(7, "Helen Fairchild")
add_user(8, "Office assistant")
add_group(0, "Doctors") -- id must be positive
add_group(1, "Doctors")
add_group(1, "Nurses") -- group already exists
add_group(2, "Nurses")
add_group(3, "Staff")
list_groups
register_user(0,1) -- id must be positive
register_user(1,0) -- id must be positive
register_user(1,1)
register_user(1,1) -- registration exists
register_user(5,3)
register_user(2,1)
register_user(3,1)
register_user(4,2)
register_user(5,2)
register_user(7,2)
register_user(7,3)
register_user(8,3)
register_user(4,3)
register_user(2,3)
list_new_messages(1) -- no new messages
list_old_messages(1) -- no old messages
register_user(10,2) -- user does not exist
send_message(0,1,"first message") -- id must be positive
send_message(1,0,"first message") -- id must be positive
send_message(1,1,"") -- message can not be empty
send_message(1,1,"Fellows, should we take this patient in? As a cardiologist, I don't have the heart to say no.")
send_message(3,1,"Being a surgeon, I choose to wash my hands of the whole thing. ")
send_message(2,1,"Let's run the idea by our radiology team. They should be able to see right through it.")
send_message(4,1,"test") -- not registered in this group
send_message(8,3,"Isn't it a bit unnerving that doctors call what they do 'practice'?")
send_message(4,3,"Hey, I heard this!")
list_new_messages(1)
list_new_messages(2)
list_new_messages(3)
list_new_messages(4)
list_new_messages(5)
list_new_messages(9) -- user does not exist
read_message(1,3)
read_message(2,1)
read_message(2,2)
read_message(2,2) -- already read
list_old_messages(2)
delete_message(2,2)
list_old_messages(2)
delete_message(2,2)
send_message(7,2,"As to diseases, make a habit of two things - to help, or at least, to do no harm.")
set_message_preview(0)
set_message_preview(25)
list_new_messages(3)
list_groups
list_users