summaryrefslogtreecommitdiff
path: root/spec/ruby/core/encoding/converter/constants_spec.rb
blob: 7d29bdb27858239971f4443d9acf46e56fe5ffd7 (plain)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
require_relative '../../../spec_helper'

describe "Encoding::Converter::INVALID_MASK" do
  it "exists" do
    Encoding::Converter.should have_constant(:INVALID_MASK)
  end

  it "has an Integer value" do
    Encoding::Converter::INVALID_MASK.should be_an_instance_of(Integer)
  end
end

describe "Encoding::Converter::INVALID_REPLACE" do
  it "exists" do
    Encoding::Converter.should have_constant(:INVALID_REPLACE)
  end

  it "has an Integer value" do
    Encoding::Converter::INVALID_REPLACE.should be_an_instance_of(Integer)
  end
end

describe "Encoding::Converter::UNDEF_MASK" do
  it "exists" do
    Encoding::Converter.should have_constant(:UNDEF_MASK)
  end

  it "has an Integer value" do
    Encoding::Converter::UNDEF_MASK.should be_an_instance_of(Integer)
  end
end

describe "Encoding::Converter::UNDEF_REPLACE" do
  it "exists" do
    Encoding::Converter.should have_constant(:UNDEF_REPLACE)
  end

  it "has an Integer value" do
    Encoding::Converter::UNDEF_REPLACE.should be_an_instance_of(Integer)
  end
end

describe "Encoding::Converter::UNDEF_HEX_CHARREF" do
  it "exists" do
    Encoding::Converter.should have_constant(:UNDEF_HEX_CHARREF)
  end

  it "has an Integer value" do
    Encoding::Converter::UNDEF_HEX_CHARREF.should be_an_instance_of(Integer)
  end
end

describe "Encoding::Converter::PARTIAL_INPUT" do
  it "exists" do
    Encoding::Converter.should have_constant(:PARTIAL_INPUT)
  end

  it "has an Integer value" do
    Encoding::Converter::PARTIAL_INPUT.should be_an_instance_of(Integer)
  end
end

describe "Encoding::Converter::AFTER_OUTPUT" do
  it "exists" do
    Encoding::Converter.should have_constant(:AFTER_OUTPUT)
  end

  it "has an Integer value" do
    Encoding::Converter::AFTER_OUTPUT.should be_an_instance_of(Integer)
  end
end

describe "Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR" do
  it "exists" do
    Encoding::Converter.should have_constant(:UNIVERSAL_NEWLINE_DECORATOR)
  end

  it "has an Integer value" do
    Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR.should be_an_instance_of(Integer)
  end
end

describe "Encoding::Converter::CRLF_NEWLINE_DECORATOR" do
  it "exists" do
    Encoding::Converter.should have_constant(:CRLF_NEWLINE_DECORATOR)
  end

  it "has an Integer value" do
    Encoding::Converter::CRLF_NEWLINE_DECORATOR.should be_an_instance_of(Integer)
  end
end

describe "Encoding::Converter::CR_NEWLINE_DECORATOR" do
  it "exists" do
    Encoding::Converter.should have_constant(:CR_NEWLINE_DECORATOR)
  end

  it "has an Integer value" do
    Encoding::Converter::CR_NEWLINE_DECORATOR.should be_an_instance_of(Integer)
  end
end

describe "Encoding::Converter::XML_TEXT_DECORATOR" do
  it "exists" do
    Encoding::Converter.should have_constant(:XML_TEXT_DECORATOR)
  end

  it "has an Integer value" do
    Encoding::Converter::XML_TEXT_DECORATOR.should be_an_instance_of(Integer)
  end
end

describe "Encoding::Converter::XML_ATTR_CONTENT_DECORATOR" do
  it "exists" do
    Encoding::Converter.should have_constant(:XML_ATTR_CONTENT_DECORATOR)
  end

  it "has an Integer value" do
    Encoding::Converter::XML_ATTR_CONTENT_DECORATOR.should be_an_instance_of(Integer)
  end
end

describe "Encoding::Converter::XML_ATTR_QUOTE_DECORATOR" do
  it "exists" do
    Encoding::Converter.should have_constant(:XML_ATTR_QUOTE_DECORATOR)
  end

  it "has an Integer value" do
    Encoding::Converter::XML_ATTR_QUOTE_DECORATOR.should be_an_instance_of(Integer)
  end
end