Finished testing and docs for now. Time for new features!

This commit is contained in:
2025-10-02 23:58:24 -06:00
parent 279658f3e5
commit b8f54b44a3
16 changed files with 316 additions and 66 deletions
+7
View File
@@ -18,6 +18,13 @@ RSpec.describe UniverseArray do
uni_arr[0][0] = 'hi'
expect(uni_arr[Position.new(0, 0)]).to eq 'hi'
end
it 'returns nil when access outside universe' do
uni_arr = UniverseArray.new()
uni_arr[3] = []
expect(uni_arr[Position.new(3, 51)]).to eq nil
expect(uni_arr[Position.new(0, 0)]).to eq nil
end
end
describe '#[]=' do