Compare commits

..

No commits in common. "58edfa01a2b339426ec03cb311f4ff275092cd73" and "ed1aeecf7d2654b2f5111f782c6471a1d0e337df" have entirely different histories.

12 changed files with 26 additions and 34 deletions

View File

@ -1798,7 +1798,7 @@ func TestGetProfile(t *testing.T) {
result: resource.Result{
Content: fmt.Sprintf(
"Name: %s\nGender: %s\nAge: %s\nLocation: %s\nYou provide: %s\n",
"John Doee", "Male", "49", "Kilifi", "Bananas",
"John Doee", "Male", "48", "Kilifi", "Bananas",
),
},
},
@ -1810,7 +1810,7 @@ func TestGetProfile(t *testing.T) {
result: resource.Result{
Content: fmt.Sprintf(
"Jina: %s\nJinsia: %s\nUmri: %s\nEneo: %s\nUnauza: %s\n",
"John Doee", "Male", "49", "Kilifi", "Bananas",
"John Doee", "Male", "48", "Kilifi", "Bananas",
),
},
},
@ -1822,7 +1822,7 @@ func TestGetProfile(t *testing.T) {
result: resource.Result{
Content: fmt.Sprintf(
"Name: %s\nGender: %s\nAge: %s\nLocation: %s\nYou provide: %s\n",
"John Doee", "Male", "49", "Kilifi", "Bananas",
"John Doee", "Male", "48", "Kilifi", "Bananas",
),
},
},

View File

@ -62,10 +62,10 @@
},
{
"input": "1234",
"expectedContent": "Select language:\n1:English\n2:Kiswahili"
"expectedContent": "Select language:\n0:English\n1:Kiswahili"
},
{
"input": "1",
"input": "0",
"expectedContent": "Your language change request was successful.\n0:Back\n9:Quit"
},
{
@ -430,7 +430,7 @@
},
{
"input": "1234",
"expectedContent": "My profile:\nName: foo bar\nGender: male\nAge: 80\nLocation: Kilifi\nYou provide: Bananas\n\n0:Back\n9:Quit"
"expectedContent": "My profile:\nName: foo bar\nGender: male\nAge: 79\nLocation: Kilifi\nYou provide: Bananas\n\n0:Back"
},
{
"input": "0",

View File

@ -7,14 +7,14 @@
"steps": [
{
"input": "",
"expectedContent": "Welcome to Sarafu Network\nPlease select a language\n1:English\n2:Kiswahili"
"expectedContent": "Welcome to Sarafu Network\nPlease select a language\n0:English\n1:Kiswahili"
},
{
"input": "1",
"expectedContent": "Do you agree to terms and conditions?\nhttps://grassecon.org/pages/terms-and-conditions\n\n1:Yes\n2:No"
"input": "0",
"expectedContent": "Do you agree to terms and conditions?\nhttps://grassecon.org/pages/terms-and-conditions\n\n0:Yes\n1:No"
},
{
"input": "1",
"input": "0",
"expectedContent": "Please enter a new four number PIN for your account:\n0:Exit"
},
{
@ -40,14 +40,14 @@
"steps": [
{
"input": "",
"expectedContent": "Welcome to Sarafu Network\nPlease select a language\n1:English\n2:Kiswahili"
"expectedContent": "Welcome to Sarafu Network\nPlease select a language\n0:English\n1:Kiswahili"
},
{
"input": "0",
"expectedContent": "Do you agree to terms and conditions?\nhttps://grassecon.org/pages/terms-and-conditions\n\n0:Yes\n1:No"
},
{
"input": "1",
"expectedContent": "Do you agree to terms and conditions?\nhttps://grassecon.org/pages/terms-and-conditions\n\n1:Yes\n2:No"
},
{
"input": "2",
"expectedContent": "Thank you for using Sarafu. Goodbye!"
}
]

View File

@ -7,4 +7,3 @@ HALT
INCMP _ 0
INCMP my_balance 1
INCMP community_balance 2
INCMP . *

View File

@ -2,9 +2,9 @@ LOAD reset_account_authorized 0
LOAD reset_incorrect 0
CATCH incorrect_pin flag_incorrect_pin 1
CATCH pin_entry flag_account_authorized 0
MOUT english 1
MOUT kiswahili 2
MOUT english 0
MOUT kiswahili 1
HALT
INCMP set_default 1
INCMP set_swa 2
INCMP set_default 0
INCMP set_swa 1
INCMP . *

View File

@ -9,4 +9,3 @@ MOUT quit 9
HALT
INCMP _ 0
INCMP quit 9
INCMP . *

View File

@ -20,4 +20,3 @@ INCMP edit_yob 4
INCMP edit_location 5
INCMP edit_offerings 6
INCMP view_profile 7
INCMP . *

View File

@ -14,4 +14,3 @@ INCMP balances 3
INCMP check_statement 4
INCMP pin_management 5
INCMP address 6
INCMP . *

View File

@ -9,4 +9,3 @@ MOUT quit 9
HALT
INCMP _ 0
INCMP quit 9
INCMP . *

View File

@ -1,6 +1,6 @@
MOUT english 1
MOUT kiswahili 2
MOUT english 0
MOUT kiswahili 1
HALT
INCMP set_eng 1
INCMP set_swa 2
INCMP set_eng 0
INCMP set_swa 1
INCMP . *

View File

@ -1,5 +1,5 @@
MOUT yes 1
MOUT no 2
MOUT yes 0
MOUT no 1
HALT
INCMP create_pin 1
INCMP create_pin 0
INCMP quit *

View File

@ -4,8 +4,5 @@ LOAD reset_incorrect 6
CATCH incorrect_pin flag_incorrect_pin 1
CATCH pin_entry flag_account_authorized 0
MOUT back 0
MOUT quit 9
HALT
INCMP _ 0
INCMP quit 9
INCMP . *