Sha256: 62d0f5a8552360ac1d7fbf25227a92d0d1c6aa2e38cc4f1c208040b60e3e84a2
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/ansicode.rb # # Extracted Wed Jan 25 10:52:51 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/ansicode.rb' require 'test/unit' class TC_ANSICode < Test::Unit::TestCase include Console::ANSICode def test_methods str = red + "Hello" + blue + "World" out = "\e[31mHello\e[34mWorld" assert_equal( out, str ) end def test_blocks str = red { "Hello" } + blue { "World" } out = "\e[31mHello\e[0m\e[34mWorld\e[0m" assert_equal( out, str ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.0.3 | packages/more/test/lib/facet/test_ansicode.rb |