mirror of
https://github.com/colby-swandale/waterfoul
synced 2025-01-27 19:58:31 +01:00
updated misc specs to pass
This commit is contained in:
parent
5847a9a584
commit
45d30cd4b2
1 changed files with 4 additions and 4 deletions
|
@ -14,18 +14,18 @@ describe Waterfoul::CPU do
|
||||||
describe '#halt' do
|
describe '#halt' do
|
||||||
it 'sets the halt flag' do
|
it 'sets the halt flag' do
|
||||||
subject.halt
|
subject.halt
|
||||||
expect(subject.halt).to eq 1
|
expect(subject.halt).to eq true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#di' do
|
describe '#di' do
|
||||||
it 'resets the interupt flag' do
|
it 'resets the interupt flag' do
|
||||||
subject.di
|
subject.di
|
||||||
expect(subject.ime).to eq 0
|
expect(subject.ime).to eq false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
xdescribe 'prefix_cb' do
|
describe 'prefix_cb' do
|
||||||
it 'increments pc by 1' do
|
it 'increments pc by 1' do
|
||||||
subject.prefix_cb
|
subject.prefix_cb
|
||||||
expect(subject.pc).to eq 1
|
expect(subject.pc).to eq 1
|
||||||
|
@ -35,7 +35,7 @@ describe Waterfoul::CPU do
|
||||||
describe '#ei' do
|
describe '#ei' do
|
||||||
it 'sets the interupt flag' do
|
it 'sets the interupt flag' do
|
||||||
subject.ei
|
subject.ei
|
||||||
expect(subject.ime).to eq 1
|
expect(subject.ime).to eq true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue