C0 code coverage information
Generated on Sun Jul 06 22:30:58 +0900 2008 with rcov 0.8.1.2
Code reported as executed by Ruby looks like this...
and this: this line is also marked as covered.
Lines considered as run by rcov, but not reported by Ruby, look like this,
and this: these lines were inferred by rcov (using simple heuristics).
Finally, here's a line marked as not executed.
1 #!/usr/bin/env ruby
2 require File.dirname(__FILE__) + '/spec_helper.rb'
3
4 include Citrus
5 include Net::IRC
6 include Constants
7
8 describe String do
9 it "should define utility method for encoding" do
10 "美乳".to_u8.should == "\347\276\216\344\271\263"
11 "美乳".to_u16.should == "\177\216Ns"
12 "美乳".to_euc.should == "\310\376\306\375"
13 "美乳".to_jis.should == "\e$BH~F}\e(B"
14 "美乳".to_sjis.should == "\224\374\223\373"
15 end
16
17 it "should define utility method for indentation" do
18 <<-EOS.unindent.should == <<-EXPECTED
19 class Tab < Indentation
20 def m; end
21 end
22 EOS
23 class Tab < Indentation
24 def m; end
25 end
26 EXPECTED
27
28 <<-EOS.unindent.should == <<-EXPECTED
29 two spaces leading.
30 four spaces leading.
31 EOS
32 two spaces leading.
33 four spaces leading.
34 EXPECTED
35
36 <<-EOS.unindent(" ").should == <<-EXPECTED
37 a
38 b
39 c
40 EOS
41 a
42 b
43 c
44 EXPECTED
45
46 <<-EOS.unindent(/\A(?:;c)+/).should == <<-EXPECTED
47 ;charset=utf-8
48 ;c;charset=UTF-8
49 EOS
50 harset=utf-8
51 ;charset=UTF-8
52 EXPECTED
53 end
54 end
55
Generated using the rcov code coverage analysis tool for Ruby
version 0.8.1.2.