Test Cases & Chat
Part 1
current
Test 1
input:Twitter(), postTweet(1, 5), getNewsFeed(1) => [5], follow(1, 2), postTweet(2, 6), getNewsFeed(1) => [6, 5], unfollow(1, 2), getNewsFeed(1) => [5]
expect:[[5], [6, 5], [5]]
Test 2
input:Twitter(), postTweet(1, 1), postTweet(2, 2), postTweet(1, 3), getNewsFeed(1) => [3, 1], follow(1, 2), getNewsFeed(1) => [3, 2, 1]
expect:[[3, 1], [3, 2, 1]]
Test 3
input:Twitter(), postTweet(1, 10), follow(1, 2), follow(1, 3), postTweet(2, 20), postTweet(3, 30), getNewsFeed(1) => [30, 20, 10]
expect:[[30, 20, 10]]
Choose your coach
Pick a style and how you want to communicate
then
Loading...
OUTPUT
Run code to see output...
Part 1
current
Test 1
input:Twitter(), postTweet(1, 5), getNewsFeed(1) => [5], follow(1, 2), postTweet(2, 6), getNewsFeed(1) => [6, 5], unfollow(1, 2), getNewsFeed(1) => [5]
expect:[[5], [6, 5], [5]]
Test 2
input:Twitter(), postTweet(1, 1), postTweet(2, 2), postTweet(1, 3), getNewsFeed(1) => [3, 1], follow(1, 2), getNewsFeed(1) => [3, 2, 1]
expect:[[3, 1], [3, 2, 1]]
Test 3
input:Twitter(), postTweet(1, 10), follow(1, 2), follow(1, 3), postTweet(2, 20), postTweet(3, 30), getNewsFeed(1) => [30, 20, 10]
expect:[[30, 20, 10]]
Choose your coach
Pick a style and how you want to communicate
then