Created
September 7, 2020 14:48
-
-
Save entzik/d27a2ed427cc107b0ea9993ffb417166 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
test = scenario do | |
user1 <- getParty "User One" | |
user2 <- getParty "User Two" | |
user3 <- getParty "User Three" | |
userContract1 <- user1 `submit` do | |
create User with username = user1, following = [] | |
userContract2 <- user2 `submit` do | |
create User with username = user2, following = [] | |
userContract3 <- user3 `submit` do | |
create User with username = user3, following = [user2, user3] | |
contract1 <- user1 `submit` do | |
exercise userContract1 Follow with userToFollow = user2 | |
pure() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment