test/test_clog.rb in clog-0.1.0 vs test/test_clog.rb in clog-0.1.1

- old
+ new

@@ -31,14 +31,20 @@ clog "Location should now be below" end def test_colors - + def runner(bg, fg=nil) - Clog.colors(bg, fg) - clog "visual inspection color test" + + if fg + Clog.colors(bg, fg) + else + Clog.colors(bg) + end + + clog "#{fg} on #{bg}" end runner :black runner :red runner :green @@ -52,9 +58,18 @@ runner :black, :yellow runner :black, :blue runner :white, :black runner :white, :blue runner :blue, :yellow + + Clog.colors(:blue) + clog "white on blue" + + Clog.colors(:blue, :red) + clog "red on blue" + + Clog.colors(:yellow, :red) + clog "red on yellow" end end