{"action":"created","comment":{"url":"https://api.github.com/repos/functionaljava/functionaljava/pulls/comments/205763864","pull_request_review_id":141100834,"id":205763864,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTc2Mzg2NA==","diff_hunk":"@@ -56,9 +57,55 @@ public void close() {\n       bracketed.run();\n       fail(\"Exception expected\");\n     } catch (IllegalArgumentException e) {\n-      Assert.assertThat(e.getMessage(), Is.is(\"OoO\"));\n+      Assert.assertThat(e.getMessage(), is(\"OoO\"));\n     }\n-    Assert.assertThat(closed.get(), Is.is(true));\n+    Assert.assertThat(closed.get(), is(true));\n+  }\n+\n+  @Test\n+  public void testTraverseIO() throws IOException {\n+    String[] as = {\"foo1\", \"bar2\", \"foobar3\"};\n+    Stream<String> stream = Stream.arrayStream(as);\n+    ByteArrayOutputStream outContent = new ByteArrayOutputStream();\n+    PrintStream originalOut = System.out;\n+    System.setOut(new PrintStream(outContent));\n+    stream.traverseIO(IOFunctions::stdoutPrint).run();\n+    System.setOut(originalOut);\n+    assertThat(outContent.toString(), is(\"foobar3bar2foo1\"));\n+  }\n+\n+  @Test\n+  public void testSequenceWhile() throws IOException {\n+    BufferedReader r = new BufferedReader(new StringReader(\"foo1\\nbar2\\nfoobar3\"));\n+    Stream<IO<String>> s1 = Stream.repeat(() -> r.readLine());\n+    IO<Stream<String>> io = sequenceWhile(s1, s -> !s.equals(\"foobar3\"));\n+    ByteArrayOutputStream outContent = new ByteArrayOutputStream();\n+    PrintStream originalOut = System.out;\n+    System.setOut(new PrintStream(outContent));\n+    runSafe(io).foreach(s -> runSafe(stdoutPrint(s)));","path":"core/src/test/java/fj/data/IOFunctionsTest.java","position":60,"original_position":60,"commit_id":"3489da27f78007244be778c71fc120c9178d3bed","original_commit_id":"3489da27f78007244be778c71fc120c9178d3bed","user":{"login":"gliptak","id":50109,"node_id":"MDQ6VXNlcjUwMTA5","avatar_url":"https://avatars0.githubusercontent.com/u/50109?v=4","gravatar_id":"","url":"https://api.github.com/users/gliptak","html_url":"https://github.com/gliptak","followers_url":"https://api.github.com/users/gliptak/followers","following_url":"https://api.github.com/users/gliptak/following{/other_user}","gists_url":"https://api.github.com/users/gliptak/gists{/gist_id}","starred_url":"https://api.github.com/users/gliptak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gliptak/subscriptions","organizations_url":"https://api.github.com/users/gliptak/orgs","repos_url":"https://api.github.com/users/gliptak/repos","events_url":"https://api.github.com/users/gliptak/events{/privacy}","received_events_url":"https://api.github.com/users/gliptak/received_events","type":"User","site_admin":false},"body":"there is sequenceWhile above. I could split to two tests ...","created_at":"2018-07-27T12:58:13Z","updated_at":"2018-07-27T12:58:13Z","html_url":"https://github.com/functionaljava/functionaljava/pull/340#discussion_r205763864","pull_request_url":"https://api.github.com/repos/functionaljava/functionaljava/pulls/340","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/functionaljava/functionaljava/pulls/comments/205763864"},"html":{"href":"https://github.com/functionaljava/functionaljava/pull/340#discussion_r205763864"},"pull_request":{"href":"https://api.github.com/repos/functionaljava/functionaljava/pulls/340"}},"in_reply_to_id":205687917},"pull_request":{"url":"https://api.github.com/repos/functionaljava/functionaljava/pulls/340","id":204290390,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0MjkwMzkw","html_url":"https://github.com/functionaljava/functionaljava/pull/340","diff_url":"https://github.com/functionaljava/functionaljava/pull/340.diff","patch_url":"https://github.com/functionaljava/functionaljava/pull/340.patch","issue_url":"https://api.github.com/repos/functionaljava/functionaljava/issues/340","number":340,"state":"open","locked":false,"title":"Add IOFunctions tests","user":{"login":"gliptak","id":50109,"node_id":"MDQ6VXNlcjUwMTA5","avatar_url":"https://avatars0.githubusercontent.com/u/50109?v=4","gravatar_id":"","url":"https://api.github.com/users/gliptak","html_url":"https://github.com/gliptak","followers_url":"https://api.github.com/users/gliptak/followers","following_url":"https://api.github.com/users/gliptak/following{/other_user}","gists_url":"https://api.github.com/users/gliptak/gists{/gist_id}","starred_url":"https://api.github.com/users/gliptak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gliptak/subscriptions","organizations_url":"https://api.github.com/users/gliptak/orgs","repos_url":"https://api.github.com/users/gliptak/repos","events_url":"https://api.github.com/users/gliptak/events{/privacy}","received_events_url":"https://api.github.com/users/gliptak/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Gábor Lipták <gliptak@gmail.com>","created_at":"2018-07-26T23:08:19Z","updated_at":"2018-07-27T12:58:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c24ae1d09fde9320787547bd79221f679622e427","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/functionaljava/functionaljava/pulls/340/commits","review_comments_url":"https://api.github.com/repos/functionaljava/functionaljava/pulls/340/comments","review_comment_url":"https://api.github.com/repos/functionaljava/functionaljava/pulls/comments{/number}","comments_url":"https://api.github.com/repos/functionaljava/functionaljava/issues/340/comments","statuses_url":"https://api.github.com/repos/functionaljava/functionaljava/statuses/3489da27f78007244be778c71fc120c9178d3bed","head":{"label":"gliptak:coverage4","ref":"coverage4","sha":"3489da27f78007244be778c71fc120c9178d3bed","user":{"login":"gliptak","id":50109,"node_id":"MDQ6VXNlcjUwMTA5","avatar_url":"https://avatars0.githubusercontent.com/u/50109?v=4","gravatar_id":"","url":"https://api.github.com/users/gliptak","html_url":"https://github.com/gliptak","followers_url":"https://api.github.com/users/gliptak/followers","following_url":"https://api.github.com/users/gliptak/following{/other_user}","gists_url":"https://api.github.com/users/gliptak/gists{/gist_id}","starred_url":"https://api.github.com/users/gliptak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gliptak/subscriptions","organizations_url":"https://api.github.com/users/gliptak/orgs","repos_url":"https://api.github.com/users/gliptak/repos","events_url":"https://api.github.com/users/gliptak/events{/privacy}","received_events_url":"https://api.github.com/users/gliptak/received_events","type":"User","site_admin":false},"repo":{"id":141852284,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE4NTIyODQ=","name":"functionaljava","full_name":"gliptak/functionaljava","owner":{"login":"gliptak","id":50109,"node_id":"MDQ6VXNlcjUwMTA5","avatar_url":"https://avatars0.githubusercontent.com/u/50109?v=4","gravatar_id":"","url":"https://api.github.com/users/gliptak","html_url":"https://github.com/gliptak","followers_url":"https://api.github.com/users/gliptak/followers","following_url":"https://api.github.com/users/gliptak/following{/other_user}","gists_url":"https://api.github.com/users/gliptak/gists{/gist_id}","starred_url":"https://api.github.com/users/gliptak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gliptak/subscriptions","organizations_url":"https://api.github.com/users/gliptak/orgs","repos_url":"https://api.github.com/users/gliptak/repos","events_url":"https://api.github.com/users/gliptak/events{/privacy}","received_events_url":"https://api.github.com/users/gliptak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gliptak/functionaljava","description":"Functional programming in Java","fork":true,"url":"https://api.github.com/repos/gliptak/functionaljava","forks_url":"https://api.github.com/repos/gliptak/functionaljava/forks","keys_url":"https://api.github.com/repos/gliptak/functionaljava/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gliptak/functionaljava/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gliptak/functionaljava/teams","hooks_url":"https://api.github.com/repos/gliptak/functionaljava/hooks","issue_events_url":"https://api.github.com/repos/gliptak/functionaljava/issues/events{/number}","events_url":"https://api.github.com/repos/gliptak/functionaljava/events","assignees_url":"https://api.github.com/repos/gliptak/functionaljava/assignees{/user}","branches_url":"https://api.github.com/repos/gliptak/functionaljava/branches{/branch}","tags_url":"https://api.github.com/repos/gliptak/functionaljava/tags","blobs_url":"https://api.github.com/repos/gliptak/functionaljava/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gliptak/functionaljava/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gliptak/functionaljava/git/refs{/sha}","trees_url":"https://api.github.com/repos/gliptak/functionaljava/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gliptak/functionaljava/statuses/{sha}","languages_url":"https://api.github.com/repos/gliptak/functionaljava/languages","stargazers_url":"https://api.github.com/repos/gliptak/functionaljava/stargazers","contributors_url":"https://api.github.com/repos/gliptak/functionaljava/contributors","subscribers_url":"https://api.github.com/repos/gliptak/functionaljava/subscribers","subscription_url":"https://api.github.com/repos/gliptak/functionaljava/subscription","commits_url":"https://api.github.com/repos/gliptak/functionaljava/commits{/sha}","git_commits_url":"https://api.github.com/repos/gliptak/functionaljava/git/commits{/sha}","comments_url":"https://api.github.com/repos/gliptak/functionaljava/comments{/number}","issue_comment_url":"https://api.github.com/repos/gliptak/functionaljava/issues/comments{/number}","contents_url":"https://api.github.com/repos/gliptak/functionaljava/contents/{+path}","compare_url":"https://api.github.com/repos/gliptak/functionaljava/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gliptak/functionaljava/merges","archive_url":"https://api.github.com/repos/gliptak/functionaljava/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gliptak/functionaljava/downloads","issues_url":"https://api.github.com/repos/gliptak/functionaljava/issues{/number}","pulls_url":"https://api.github.com/repos/gliptak/functionaljava/pulls{/number}","milestones_url":"https://api.github.com/repos/gliptak/functionaljava/milestones{/number}","notifications_url":"https://api.github.com/repos/gliptak/functionaljava/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gliptak/functionaljava/labels{/name}","releases_url":"https://api.github.com/repos/gliptak/functionaljava/releases{/id}","deployments_url":"https://api.github.com/repos/gliptak/functionaljava/deployments","created_at":"2018-07-21T23:27:21Z","updated_at":"2018-07-21T23:27:24Z","pushed_at":"2018-07-26T23:36:47Z","git_url":"git://github.com/gliptak/functionaljava.git","ssh_url":"git@github.com:gliptak/functionaljava.git","clone_url":"https://github.com/gliptak/functionaljava.git","svn_url":"https://github.com/gliptak/functionaljava","homepage":"www.functionaljava.org","size":3094,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"functionaljava:master","ref":"master","sha":"49f52e94279c351dc824b9e4257297fa7f921835","user":{"login":"functionaljava","id":458836,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1ODgzNg==","avatar_url":"https://avatars2.githubusercontent.com/u/458836?v=4","gravatar_id":"","url":"https://api.github.com/users/functionaljava","html_url":"https://github.com/functionaljava","followers_url":"https://api.github.com/users/functionaljava/followers","following_url":"https://api.github.com/users/functionaljava/following{/other_user}","gists_url":"https://api.github.com/users/functionaljava/gists{/gist_id}","starred_url":"https://api.github.com/users/functionaljava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/functionaljava/subscriptions","organizations_url":"https://api.github.com/users/functionaljava/orgs","repos_url":"https://api.github.com/users/functionaljava/repos","events_url":"https://api.github.com/users/functionaljava/events{/privacy}","received_events_url":"https://api.github.com/users/functionaljava/received_events","type":"Organization","site_admin":false},"repo":{"id":1033614,"node_id":"MDEwOlJlcG9zaXRvcnkxMDMzNjE0","name":"functionaljava","full_name":"functionaljava/functionaljava","owner":{"login":"functionaljava","id":458836,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1ODgzNg==","avatar_url":"https://avatars2.githubusercontent.com/u/458836?v=4","gravatar_id":"","url":"https://api.github.com/users/functionaljava","html_url":"https://github.com/functionaljava","followers_url":"https://api.github.com/users/functionaljava/followers","following_url":"https://api.github.com/users/functionaljava/following{/other_user}","gists_url":"https://api.github.com/users/functionaljava/gists{/gist_id}","starred_url":"https://api.github.com/users/functionaljava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/functionaljava/subscriptions","organizations_url":"https://api.github.com/users/functionaljava/orgs","repos_url":"https://api.github.com/users/functionaljava/repos","events_url":"https://api.github.com/users/functionaljava/events{/privacy}","received_events_url":"https://api.github.com/users/functionaljava/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/functionaljava/functionaljava","description":"Functional programming in Java","fork":false,"url":"https://api.github.com/repos/functionaljava/functionaljava","forks_url":"https://api.github.com/repos/functionaljava/functionaljava/forks","keys_url":"https://api.github.com/repos/functionaljava/functionaljava/keys{/key_id}","collaborators_url":"https://api.github.com/repos/functionaljava/functionaljava/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/functionaljava/functionaljava/teams","hooks_url":"https://api.github.com/repos/functionaljava/functionaljava/hooks","issue_events_url":"https://api.github.com/repos/functionaljava/functionaljava/issues/events{/number}","events_url":"https://api.github.com/repos/functionaljava/functionaljava/events","assignees_url":"https://api.github.com/repos/functionaljava/functionaljava/assignees{/user}","branches_url":"https://api.github.com/repos/functionaljava/functionaljava/branches{/branch}","tags_url":"https://api.github.com/repos/functionaljava/functionaljava/tags","blobs_url":"https://api.github.com/repos/functionaljava/functionaljava/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/functionaljava/functionaljava/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/functionaljava/functionaljava/git/refs{/sha}","trees_url":"https://api.github.com/repos/functionaljava/functionaljava/git/trees{/sha}","statuses_url":"https://api.github.com/repos/functionaljava/functionaljava/statuses/{sha}","languages_url":"https://api.github.com/repos/functionaljava/functionaljava/languages","stargazers_url":"https://api.github.com/repos/functionaljava/functionaljava/stargazers","contributors_url":"https://api.github.com/repos/functionaljava/functionaljava/contributors","subscribers_url":"https://api.github.com/repos/functionaljava/functionaljava/subscribers","subscription_url":"https://api.github.com/repos/functionaljava/functionaljava/subscription","commits_url":"https://api.github.com/repos/functionaljava/functionaljava/commits{/sha}","git_commits_url":"https://api.github.com/repos/functionaljava/functionaljava/git/commits{/sha}","comments_url":"https://api.github.com/repos/functionaljava/functionaljava/comments{/number}","issue_comment_url":"https://api.github.com/repos/functionaljava/functionaljava/issues/comments{/number}","contents_url":"https://api.github.com/repos/functionaljava/functionaljava/contents/{+path}","compare_url":"https://api.github.com/repos/functionaljava/functionaljava/compare/{base}...{head}","merges_url":"https://api.github.com/repos/functionaljava/functionaljava/merges","archive_url":"https://api.github.com/repos/functionaljava/functionaljava/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/functionaljava/functionaljava/downloads","issues_url":"https://api.github.com/repos/functionaljava/functionaljava/issues{/number}","pulls_url":"https://api.github.com/repos/functionaljava/functionaljava/pulls{/number}","milestones_url":"https://api.github.com/repos/functionaljava/functionaljava/milestones{/number}","notifications_url":"https://api.github.com/repos/functionaljava/functionaljava/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/functionaljava/functionaljava/labels{/name}","releases_url":"https://api.github.com/repos/functionaljava/functionaljava/releases{/id}","deployments_url":"https://api.github.com/repos/functionaljava/functionaljava/deployments","created_at":"2010-10-29T00:19:26Z","updated_at":"2018-07-27T07:03:41Z","pushed_at":"2018-07-26T23:36:48Z","git_url":"git://github.com/functionaljava/functionaljava.git","ssh_url":"git@github.com:functionaljava/functionaljava.git","clone_url":"https://github.com/functionaljava/functionaljava.git","svn_url":"https://github.com/functionaljava/functionaljava","homepage":"www.functionaljava.org","size":3093,"stargazers_count":1147,"watchers_count":1147,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":183,"mirror_url":null,"archived":false,"open_issues_count":24,"license":null,"forks":183,"open_issues":24,"watchers":1147,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/functionaljava/functionaljava/pulls/340"},"html":{"href":"https://github.com/functionaljava/functionaljava/pull/340"},"issue":{"href":"https://api.github.com/repos/functionaljava/functionaljava/issues/340"},"comments":{"href":"https://api.github.com/repos/functionaljava/functionaljava/issues/340/comments"},"review_comments":{"href":"https://api.github.com/repos/functionaljava/functionaljava/pulls/340/comments"},"review_comment":{"href":"https://api.github.com/repos/functionaljava/functionaljava/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/functionaljava/functionaljava/pulls/340/commits"},"statuses":{"href":"https://api.github.com/repos/functionaljava/functionaljava/statuses/3489da27f78007244be778c71fc120c9178d3bed"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"gliptak"}}