Bash
Regular Expressions
Declarative Programming
Advanced Language Features
Programming Paradigms
Fundamentals
Strings
function missing() { comm -13 $1 $2 }
function missing() { cat $1 <(cat $1 $2 ) <(cat $2 $1 | sort | uniq -c | tr -d ' ' | grep '^1' | sed 's/1//') | sort | uniq -c | tr -d ' ' | grep '^2' | sed 's/2//'; }- function missing() { comm -13 $1 $2 }
# TODO: replace with your own tests (TDD). An example to get you started is included below. # run the solution and store its result File.open("one", "w") {|f| f.write("one\ntwo") } File.open("one", "w") {|f| f.write("one\ntwo\nsix") } #output = run_shell args: ['my_arg'] describe "Solution" do it "should return the argument passed in" do expect(run_shell args: ['one', 'two']).to include('six') end #end
- # TODO: replace with your own tests (TDD). An example to get you started is included below.
- # run the solution and store its result
# output = run_shell args: ['my_arg']- File.open("one", "w") {|f| f.write("one\ntwo") }
- File.open("one", "w") {|f| f.write("one\ntwo\nsix") }
- #output = run_shell args: ['my_arg']
# describe "Solution" do# it "should return the argument passed in" do# expect(output).to include('my_arg')# end# end- describe "Solution" do
- it "should return the argument passed in" do
- expect(run_shell args: ['one', 'two']).to include('six')
- end
- #end