Sha256: c8129b7594372737dac5edc6e9f8c8b412d5e59db7d9a6269865f4c821deae65
Contents?: true
Size: 1.07 KB
Versions: 13
Compression:
Stored size: 1.07 KB
Contents
# encoding: utf-8 require 'test_helper' require 'review/compiler' require 'review/book' require 'review/latexbuilder' class CompilerTest < Test::Unit::TestCase include ReVIEW def setup @builder = LATEXBuilder.new() @c = Compiler.new(@builder) end def test_parse_args args = @c.__send__(:parse_args, "[foo][bar]") assert_equal ["foo","bar"], args end def test_parse_args_with_brace1 args = @c.__send__(:parse_args, "[fo[\\][\\]o][bar]") assert_equal ["fo[][]o","bar"], args end def test_parse_args_with_brace2 args = @c.__send__(:parse_args, "[f\\]o\\]o][bar]") assert_equal ["f]o]o","bar"], args end def test_parse_args_with_backslash args = @c.__send__(:parse_args, "[foo][bar\\buz]") assert_equal ["foo","bar\\buz"], args end def test_parse_args_with_backslash2 args = @c.__send__(:parse_args, "[foo][bar\\#\\[\\!]") assert_equal ["foo","bar\\#\\[\\!"], args end def test_parse_args_with_backslash3 args = @c.__send__(:parse_args, "[foo][bar\\\\buz]") assert_equal ["foo","bar\\buz"], args end end
Version data entries
13 entries across 13 versions & 1 rubygems