~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to Examples/test-suite/ruby/char_constant_runme.rb

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
require 'char_constant'
 
2
 
 
3
 
 
4
if Char_constant::CHAR_CONSTANT != 'x'
 
5
  raise RuntimeError, "Invalid value for CHAR_CONSTANT."
 
6
end
 
7
  
 
8
if Char_constant::STRING_CONSTANT != 'xyzzy'
 
9
  raise RuntimeError, "Invalid value for STRING_CONSTANT."
 
10
end
 
11
 
 
12
if Char_constant::ESC_CONST != "\001"
 
13
  raise RuntimeError, "Invalid value for ESC_CONST."
 
14
end
 
15
 
 
16
if Char_constant::NULL_CONST != "\000"
 
17
  raise RuntimeError, "Invalid value for NULL_CONST."
 
18
end
 
19
 
 
20
if Char_constant::SPECIALCHAR != "\341"  #'�'
 
21
  raise RuntimeError, "Invalid value for SPECIALCHAR."
 
22
end
 
23