Created
March 31, 2018 09:11
-
-
Save iamcrypticcoder/7bdcb52bfb9a78767a3c96f3958c5175 to your computer and use it in GitHub Desktop.
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
import Foundation | |
let user: User = User() | |
user.addPost(Post("Post 1", 10, 5, 5)) | |
user.addPost(Post("Post 2", 10, 5, 5)) | |
user.addPost(Post("Post 3", 10, 0, 0)) | |
user.addPost(Post("Post 4", 0, 0, 10)) | |
user.analyzePosts(LaughAnalyzeStrategy()) | |
user.analyzePosts(SadnessAnalysisStrategy()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment