GitHub PullRequestReviewCommentEvent at 2014-04-11 17:17:28
Repository: transrate
Actor: houndci
Payload: {"comment":{"url":"https://api.github.com/repos/Blahah/transrate/pulls/comments/11541938","id":11541938,"diff_hunk":"@@ -0,0 +1,41 @@\n+#!/usr/bin/env\truby\n+\n+require 'helper'\n+\n+class TestTransrate < Test::Unit::TestCase\n+\n+  context \"transrate\" do\n+\n+    setup do\n+      @a = Transrate::Assembly.new(\"test/assembly.fasta\")\n+      @seq1 = \"ATGCCCGGGTAG\"\n+    end\n+\n+    should \"run metrics on assembly\" do\n+      ans = @a.run(2) # using 2 threads\n+      assert_equal ans, true, \"should run but returned #{ans}\"\n+    end\n+\n+    should \"find longest orf\" do\n+      len = @a.orf_length(\"ATGCCCGGGTAG\")\n+      assert_equal len, 4, \"expected 4 but got #{len}\"\n+    end\n+\n+    should \"find longest orf in file\" do\n+      orfs = []\n+      @a.assembly.each do |entry|\n+        l = @a.orf_length entry.seq\n+        orfs << l\n+      end\n+      assert_equal orfs.length, 4\n+      assert_equal orfs, [333, 370, 131, 84]\n+    end\n+\n+    should \"find the mean length\" do","path":"test/test_test.rb","position":34,"original_position":34,"commit_id":"f92b1cbf681bd346b0e8eb4abb6c22be4c78fd79","original_commit_id":"f92b1cbf681bd346b0e8eb4abb6c22be4c78fd79","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?","gravatar_id":"38d9cefd9971a05bf447f07c6cd332cc","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2014-04-11T17:17:28Z","updated_at":"2014-04-11T17:17:28Z","html_url":"https://github.com/Blahah/transrate/pull/22#discussion_r11541938","pull_request_url":"https://api.github.com/repos/Blahah/transrate/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/Blahah/transrate/pulls/comments/11541938"},"html":{"href":"https://github.com/Blahah/transrate/pull/22#discussion_r11541938"},"pull_request":{"href":"https://api.github.com/repos/Blahah/transrate/pulls/22"}}}}