mirror of
https://github.com/colby-swandale/waterfoul
synced 2025-01-13 08:01:18 +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
|
||||
it 'sets the halt flag' do
|
||||
subject.halt
|
||||
expect(subject.halt).to eq 1
|
||||
expect(subject.halt).to eq true
|
||||
end
|
||||
end
|
||||
|
||||
describe '#di' do
|
||||
it 'resets the interupt flag' do
|
||||
subject.di
|
||||
expect(subject.ime).to eq 0
|
||||
expect(subject.ime).to eq false
|
||||
end
|
||||
end
|
||||
|
||||
xdescribe 'prefix_cb' do
|
||||
describe 'prefix_cb' do
|
||||
it 'increments pc by 1' do
|
||||
subject.prefix_cb
|
||||
expect(subject.pc).to eq 1
|
||||
|
@ -35,7 +35,7 @@ describe Waterfoul::CPU do
|
|||
describe '#ei' do
|
||||
it 'sets the interupt flag' do
|
||||
subject.ei
|
||||
expect(subject.ime).to eq 1
|
||||
expect(subject.ime).to eq true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue