raf 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/raf.gemspec +1 -1
- data/test/test_footnote.rb +3 -3
- data/test/test_image.rb +4 -4
- data/test/ts_block.rb +1 -0
- data/test/ts_inline.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/raf.gemspec
CHANGED
data/test/test_footnote.rb
CHANGED
@@ -12,7 +12,7 @@ class TestRafFootnote < Test::Unit::TestCase
|
|
12
12
|
str = '(([aaa]))'
|
13
13
|
res = @raf.parse(str)
|
14
14
|
assert_kind_of Raf::Footnote, res[0]
|
15
|
-
assert_equal '<Footnote>
|
15
|
+
assert_equal '<Footnote>aaa</Footnote>', res[0].apply
|
16
16
|
assert_equal "aaa", @raf.index[:footnote][0][:content][0].apply
|
17
17
|
end
|
18
18
|
|
@@ -23,10 +23,10 @@ class TestRafFootnote < Test::Unit::TestCase
|
|
23
23
|
assert_kind_of Raf::Footnote, res[0]
|
24
24
|
assert_kind_of Raf::Footnote, res[1]
|
25
25
|
assert_kind_of Raf::Footnote, res[2]
|
26
|
-
|
26
|
+
|
27
27
|
assert_equal "aaa", @raf.index[:footnote][0][:content][0].apply
|
28
28
|
assert_equal "bbb", @raf.index[:footnote][1][:content][0].apply
|
29
|
-
assert_equal "ccc", @raf.index[:footnote][2][:content][0].apply
|
29
|
+
assert_equal "ccc", @raf.index[:footnote][2][:content][0].apply
|
30
30
|
end
|
31
31
|
|
32
32
|
def test_footnote_in_element
|
data/test/test_image.rb
CHANGED
@@ -11,16 +11,16 @@ class TestRafImage < Test::Unit::TestCase
|
|
11
11
|
def test_image_is_image
|
12
12
|
str = '(($aaa.png$))'
|
13
13
|
res = @raf.parse(str)
|
14
|
-
assert_kind_of Raf::
|
14
|
+
assert_kind_of Raf::Image, res[0]
|
15
15
|
end
|
16
16
|
|
17
17
|
def test_image_apply
|
18
|
-
str1 = '(($aaa.png$))'
|
18
|
+
str1 = '(($aaa.png$))'
|
19
19
|
res = @raf.parse(str1)
|
20
20
|
assert_respond_to res[0], 'apply'
|
21
21
|
assert_equal '<Image>aaa.png</Image>', res[0].apply
|
22
22
|
|
23
|
-
str2 = '(($AAA|aaa.png$))'
|
23
|
+
str2 = '(($AAA|aaa.png$))'
|
24
24
|
res = @raf.parse(str2)
|
25
25
|
assert_respond_to res[0], 'apply'
|
26
26
|
assert_equal '<Image>AAA|aaa.png</Image>', res[0].apply
|
@@ -36,7 +36,7 @@ class TestRafImage < Test::Unit::TestCase
|
|
36
36
|
# res = @raf.parse(str2)
|
37
37
|
# assert_equal [Raf::Plain, Raf::Image, Raf::Plain], res[0].contents.map {|c| c.class }
|
38
38
|
# assert_equal '<Image>a<Image>a</Image>a</Image>', res[0].apply
|
39
|
-
|
39
|
+
|
40
40
|
# str3 = '(($a((*a*))a$))'
|
41
41
|
# res = @raf.parse(str3)
|
42
42
|
# assert_equal [Raf::Plain, Raf::Emphasis, Raf::Plain], res[0].contents.map {|c| c.class }
|
data/test/ts_block.rb
CHANGED
data/test/ts_inline.rb
CHANGED
metadata
CHANGED