Sha256: 7fde2d697b49b428220d60bc17caa39d151cb74007999608897dec8a588937e8
Contents?: true
Size: 500 Bytes
Versions: 1
Compression:
Stored size: 500 Bytes
Contents
require 'ansi/code' testcase ANSI::Code do unit :red do str = ANSI::Code.red out = "\e[31m" out.assert == str end unit :red => "with block notation" do str = ANSI::Code.red { "Hello" } out = "\e[31mHello\e[0m" out.assert == str end unit :blue do str = ANSI::Code.blue out = "\e[34m" out.assert == str end unit :blue => "with block notation" do str = ANSI::Code.blue { "World" } out = "\e[34mWorld\e[0m" out.assert == str end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ansi-1.3.0 | test/case_ansicode.rb |