```ruby
require_relative "my_solution"

describe 'largest_integer' do
  it "returns nil when the array is empty ([])" do
    expect(largest_integer([])).to be_nil
  end

  it "returns 0 when that is the only element in the array" do
    expect(largest_integer([0])).to eq 0
  end

  it "returns -10 when that is the only element in the array" do
    expect(largest_integer([-10])).to eq -10
  end

  it "returns 10 for [-10, 0, 10]" do
    expect(largest_integer([-10, 0, 10])).to eq 10
  end

  it "returns 3 for [1, 2, 3]" do
    expect(largest_integer([1, 2, 3])).to eq 3
  end

  it "returns -10 for [-10, -20, -30]" do
    expect(largest_integer([-10, -20, -30])).to eq -10
  end

  it "returns the largest positive integer regardless of ordering" do
    array = (1..100).to_a.shuffle

    expect(largest_integer(array)).to eq 100
  end

  it "returns the largest negative integer regardless of ordering" do
    array = (-100..-10).to_a.shuffle

    expect(largest_integer(array)).to eq -10
  end
end```

Add test file for challenge 4.6
user
```ruby

require_relative "my_solution"

describe 'largest_integer' do
  it "returns nil when the array is empty ([])" do
    expect(largest_integer([])).to be_nil
  end

  it "returns 0 when that is the only element in the array" do
    expect(largest_integer([0])).to eq 0
  end

  it "returns -10 when that is the only element in the array" do
    expect(largest_integer([-10])).to eq -10
  end

  it "returns 10 for [-10, 0, 10]" do
    expect(largest_integer([-10, 0, 10])).to eq 10
  end

  it "returns 3 for [1, 2, 3]" do
    expect(largest_integer([1, 2, 3])).to eq 3
  end

  it "returns -10 for [-10, -20, -30]" do
    expect(largest_integer([-10, -20, -30])).to eq -10
  end

  it "returns the largest positive integer regardless of ordering" do
    array = (1..100).to_a.shuffle

    expect(largest_integer(array)).to eq 100
  end

  it "returns the largest negative integer regardless of ordering" do
    array = (-100..-10).to_a.shuffle

    expect(largest_integer(array)).to eq -10
  end
end```
assistant