File: catch_interrupt.rb

package info (click to toggle)
ruby-maxitest 6.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 504 kB
  • sloc: ruby: 1,583; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 194 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require "./spec/cases/helper"

describe 2 do
  it "xx" do
    x = 2
    begin
      raise Interrupt
    rescue Interrupt
      x = 1
    else
      x = 3
    end
    _(x).must_equal 1
  end
end