Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 31 lines (23 sloc) 0.565 kb
150b235 @bovi Add Tests for all Exception classes, for false, true, Proc, Module, nil ...
bovi authored
1 ##
2 # FalseClass ISO Test
3
4 assert('FalseClass', '15.2.6') do
5 FalseClass.class == Class
6 end
7
0c2d740 @bovi Add more superclass tests
bovi authored
8 assert('FalseClass superclass', '15.2.6.2') do
9 FalseClass.superclass == Object
10 end
11
150b235 @bovi Add Tests for all Exception classes, for false, true, Proc, Module, nil ...
bovi authored
12 assert('FalseClass false', '15.2.6.1') do
13 not false
14 end
15
16 assert('FalseClass#&', '15.2.6.3.1') do
3449462 @matz do not use TrueClass/FalseClass.new
matz authored
17 not false.&(true) and not false.&(false)
150b235 @bovi Add Tests for all Exception classes, for false, true, Proc, Module, nil ...
bovi authored
18 end
19
20 assert('FalseClass#^', '15.2.6.3.2') do
3449462 @matz do not use TrueClass/FalseClass.new
matz authored
21 false.^(true) and not false.^(false)
150b235 @bovi Add Tests for all Exception classes, for false, true, Proc, Module, nil ...
bovi authored
22 end
23
24 assert('FalseClass#to_s', '15.2.6.3.3') do
3449462 @matz do not use TrueClass/FalseClass.new
matz authored
25 false.to_s == 'false'
150b235 @bovi Add Tests for all Exception classes, for false, true, Proc, Module, nil ...
bovi authored
26 end
27
28 assert('FalseClass#|', '15.2.6.3.4') do
3449462 @matz do not use TrueClass/FalseClass.new
matz authored
29 false.|(true) and not false.|(false)
150b235 @bovi Add Tests for all Exception classes, for false, true, Proc, Module, nil ...
bovi authored
30 end
Something went wrong with that request. Please try again.