mirror of
https://github.com/michaeldv/pit.git
synced 2025-12-08 23:53:25 +00:00
26 lines
526 B
Ruby
26 lines
526 B
Ruby
module Pit
|
|
module Note
|
|
def should_not_segfault
|
|
`#{@pit} p -c test`
|
|
`#{@pit} t -c test`
|
|
(1..12).each do |i|
|
|
`#{@pit} n -c note#{i}`
|
|
end
|
|
(1..6).each do |i|
|
|
`#{@pit} n -d #{i}`
|
|
end
|
|
`#{@pit} n -c note13`
|
|
`#{@pit} l`.should.match /created note 13/m
|
|
end
|
|
|
|
def should_handle_all_notes
|
|
`#{@pit} p -c test`
|
|
`#{@pit} t -c test`
|
|
(1..128).each do |n|
|
|
`#{@pit} n -c note#{n}`
|
|
`#{@pit} n -e #{n} xxx`
|
|
end
|
|
end
|
|
end
|
|
end
|