GitHub PullRequestReviewCommentEvent at 2014-01-06 14:07:59
Repository: core
Actor: ediosyncratic
Payload: {"comment":{"url":"https://api.github.com/repos/cfengine/core/pulls/comments/8665277","id":8665277,"diff_hunk":"@@ -0,0 +1,170 @@\n+#######################################################\n+#\n+# Test folding functions: length(), max(), min(), mean(), range(), stddev(), and variance()\n+#\n+#######################################################\n+\n+body common control\n+{\n+      inputs => { \"../../default.cf.sub\" };\n+      bundlesequence  => { default(\"$(this.promise_filename)\") };\n+      version => \"1.0\";\n+}\n+\n+#######################################################\n+\n+bundle agent init\n+{\n+}\n+\n+#######################################################\n+\n+bundle agent test\n+{\n+  vars:\n+      \"a\" slist => { \"b\", \"c\", \"a\" };\n+      \"b\" slist => { \"100\", \"9\", \"10\" };\n+      \"c\" slist => { };\n+      \"d\" slist => { \"\", \"a\", \"\", \"b\" };\n+      \"e\" slist => { \"a\", \"1\", \"b\" };\n+      \"f\" rlist => { \"100\", \"200\", \"300\" };\n+      \"g\" rlist => { \"1.11\", \"-2.22\", \"-3.33\" };\n+      \"h\" ilist => { \"-10\", \"0\", \"200\" };\n+      \"lists\" slist => { \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\" };\n+      \"bad_lists\" slist => { \"c\" };\n+      \"good_lists\" slist => difference(\"lists\", \"bad_lists\");\n+      \"joined_$(lists)\" string => join(\",\", $(lists));","path":"tests/acceptance/01_vars/02_functions/fold.cf","position":36,"original_position":36,"commit_id":"fe16c3550e2ca240e63dda4125b8e1a3f60ecc32","original_commit_id":"8b7bbaf2959b470e262fc4dfe731656ae75e046b","user":{"login":"ediosyncratic","id":2255042,"avatar_url":"https://gravatar.com/avatar/bbe766bb0c7aee798888f5de85063c8c?d=https%3A%2F%2Fidenticons.github.com%2Ff3e9467a13890e88f3cb0e85a8792507.png&r=x","gravatar_id":"bbe766bb0c7aee798888f5de85063c8c","url":"https://api.github.com/users/ediosyncratic","html_url":"https://github.com/ediosyncratic","followers_url":"https://api.github.com/users/ediosyncratic/followers","following_url":"https://api.github.com/users/ediosyncratic/following{/other_user}","gists_url":"https://api.github.com/users/ediosyncratic/gists{/gist_id}","starred_url":"https://api.github.com/users/ediosyncratic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ediosyncratic/subscriptions","organizations_url":"https://api.github.com/users/ediosyncratic/orgs","repos_url":"https://api.github.com/users/ediosyncratic/repos","events_url":"https://api.github.com/users/ediosyncratic/events{/privacy}","received_events_url":"https://api.github.com/users/ediosyncratic/received_events","type":"User","site_admin":false},"body":"Since $(joined_$(lists)) is used for display, it might be a kindness to the reader to put some delimiters round it; either here (if that's easy to do) or where it's used, e.g. \"List a: [ b, c, a ] has length 3\" and similar.","created_at":"2014-01-06T14:07:59Z","updated_at":"2014-01-06T14:07:59Z","html_url":"https://github.com/cfengine/core/pull/1239#discussion_r8665277","pull_request_url":"https://api.github.com/repos/cfengine/core/pulls/1239","_links":{"self":{"href":"https://api.github.com/repos/cfengine/core/pulls/comments/8665277"},"html":{"href":"https://github.com/cfengine/core/pull/1239#discussion_r8665277"},"pull_request":{"href":"https://api.github.com/repos/cfengine/core/pulls/1239"}}}}