antlr3 /runtime/Ruby/test/unit/test-exceptions.rb

Language Ruby Lines 57
MD5 Hash 4cf2e02b6ba76973de07107449171814 Estimated Cost $237 (why?)
Repository https://bitbucket.org/jwalton/antlr3.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/ruby
# encoding: utf-8

require 'antlr3'
require 'test/unit'
require 'spec'

include ANTLR3::Error

describe( ANTLR3::Error ) do
  
  example "raising an ANTLR bug exception" do
    proc {
      ANTLR3.bug!( 'whateva' )
    }.should raise_error( ANTLR3::Bug )
  end
  
  
end

#
#class TestRecognitionError < Test::Unit::TestCase
#  def test_init_none
#    RecognitionError.new()
#  end
#end
#
#class TestEarlyExit < Test::Unit::TestCase
#  def test_init_none
#    EarlyExit.new
#  end
#end
#
#class TestMismatchedNotSet  < Test::Unit::TestCase
#  def test_init_none
#    MismatchedNotSet.new
#  end
#end
#
#class TestMismatchedRange < Test::Unit::TestCase
#  def test_init_none
#    MismatchedSet.new
#  end
#end
#
#class TestMismatchedToken < Test::Unit::TestCase
#  def test_init_none
#    MismatchedToken.new
#  end
#end
#
#class TestNoViableAlternative < Test::Unit::TestCase
#  def test_init_none
#    NoViableAlternative.new
#  end
#end
Back to Top