I hereby claim:
- I am scarvill91 on github.
- I am scarvill (https://keybase.io/scarvill) on keybase.
- I have a public key ASARSn1lU6NYjy-Ph7vcMJwor3o4YiYqJi6OgFPHtWhhfAo
To claim this, I am signing this object:
import React from "react"; | |
export default class BillUploadView extends React.Component { | |
constructor(props) { | |
super(props); | |
this.handleSubmit = this.handleSubmit.bind(this); | |
this.handleImageChange = this.handleImageChange.bind(this); | |
this.state = { | |
file: "", |
it("first test", () => { | |
console.log("first test") | |
spyOn($, "ajax") | |
}) | |
it("second test", () => { | |
console.log("second test") | |
console.log($.ajax.calls) | |
}) | |
I hereby claim:
To claim this, I am signing this object:
describe "Traveling Salesman Problem" do | |
let(:cities) { [[1, 2], [3, 4], [8, 7], [10, 12], [2, 4]] } | |
it 'determines the shortest route' do | |
tsp = TSP.new(cities) | |
answer_route = [[3, 4], [8, 7], [10, 12], [2, 4], [1, 2]] | |
expect(tsp.route == answer_route || tsp.route == answer_route.reverse).to be true | |
end |