Sha256: 83a37268fdbe9d397151a9e289860664422d85ec73e673a384e2611a8725f03a
Contents?: true
Size: 794 Bytes
Versions: 9
Compression:
Stored size: 794 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ | # |_|\___||___/\__| # # for lib/facets/bbcode.rb # # Extracted Mon Sep 03 16:23:08 -0700 2007 # w/ Test Extraction Ratchet # require 'facets/bbcode.rb' require 'test/unit' class TC_BBCode < Test::Unit::TestCase def test_to_ansi str = "this is [COLOR=red]red[/COLOR], this is [B]bold[/B]" out = "this is \e[0;31mred\e[0m, this is \e[1mbold\e[0m\n" assert_equal( out, BBCode.bbcode_to_ansi(str) ) end def test_to_html str = "this is [COLOR=red]red[/COLOR], this is [B]bold[/B]" out = "this is <font color=\"red\">red</font>, this is <strong>bold</strong><br />\n" assert_equal( out, BBCode.bbcode_to_html(str) ) end end
Version data entries
9 entries across 9 versions & 1 rubygems