Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 344
- Log:
Massive changeset which brings the old, ROOL customised Instiki
version up to date, but without any ROOL customisations in this
latest checked-in version (which is 0.19.1). This is deliberate,
so that it's easy to see the changes made for the ROOL version
in a subsequent changeset. The 'app/views/shared' directory is not
part of Instiki but is kept to maintain the change history with
updated ROOL customisations, some of which involve the same files
in that same directory.
- Author:
- rool
- Date:
- Sat Mar 19 19:52:13 +0000 2011
- Size:
- 1659 Bytes
- Properties:
- Property svn:executable is set to *
1 | #!/usr/bin/env ruby |
2 | |
3 | require File.dirname(__FILE__) + '/../test_helper' |
4 | |
5 | class RedClothForTexTest < Test::Unit::TestCase |
6 | def test_basics |
7 | assert_equal '{\bf First Page}', Maruku.new('*First Page*').to_latex |
8 | assert_equal '{\em First Page}', Maruku.new('_First Page_').to_latex |
9 | assert_equal "\\begin{itemize}\n\t\\item A\n\t\t\\item B\n\t\t\\item C\n\t\\end{itemize}", Maruku.new('* A\n* B\n* C').to_latex |
10 | end |
11 | |
12 | def test_blocks |
13 | assert_equal '\section*{hello}', Maruku.new('#hello#').to_latex |
14 | assert_equal '\subsection*{hello}', Maruku.new('##hello##').to_latex |
15 | end |
16 | |
17 | def test_table_of_contents |
18 | |
19 | source = <<EOL |
20 | * [[A]] |
21 | ** [[B]] |
22 | ** [[C]] |
23 | * D |
24 | ** [[E]] |
25 | *** F |
26 | EOL |
27 | |
28 | expected_result = <<EOL |
29 | \\pagebreak |
30 | |
31 | \\section{A} |
32 | Abe |
33 | |
34 | \\subsection{B} |
35 | Babe |
36 | |
37 | \\subsection{C} |
38 | \\pagebreak |
39 | |
40 | \\section{D} |
41 | |
42 | \\subsection{E} |
43 | |
44 | \\subsubsection{F} |
45 | EOL |
46 | expected_result.chop! |
47 | assert_equal(expected_result, table_of_contents(source, 'A' => 'Abe', 'B' => 'Babe')) |
48 | end |
49 | |
50 | def test_entities |
51 | assert_equal "Beck \\& Fowler are 100\\% cool", RedClothForTex.new("Beck & Fowler are 100% cool").to_tex |
52 | end |
53 | |
54 | def test_bracket_links |
55 | assert_equal "such a Horrible Day, but I won't be Made Useless", RedClothForTex.new("such a [[Horrible Day]], but I won't be [[Made Useless]]").to_tex |
56 | end |
57 | |
58 | def test_footnotes_on_abbreviations |
59 | assert_equal( |
60 | "such a Horrible Day\\footnote{1}, but I won't be Made Useless", |
61 | RedClothForTex.new("such a [[Horrible Day]][1], but I won't be [[Made Useless]]").to_tex |
62 | ) |
63 | end |
64 | |
65 | def test_subsection_depth |
66 | assert_equal "\\subsubsection*{Hello}", RedClothForTex.new("h4. Hello").to_tex |
67 | end |
68 | end |