27 lines
774 B
Ruby
27 lines
774 B
Ruby
require 'spec_helper'
|
|
|
|
describe Rubella::Output::ASCII, '.symbols=' do
|
|
|
|
it "returns the set of symbols" do
|
|
output = Rubella::Output::ASCII.new nil
|
|
|
|
symbols = Hash.new
|
|
symbols["shades"] =
|
|
[" ", " ", "░", "░", "▒", "▒", "▓", "▓", "█", "█"]
|
|
symbols["shades_ascii"] =
|
|
[" ", "·", "⚬", "∞", "@", "#", "░", "▒", "▓", "█"]
|
|
symbols["ascii"] =
|
|
[" ", "·", ",", ";", "o", "O", "%", "8", "@", "#"]
|
|
symbols["numbers"] =
|
|
[" ", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
|
|
|
expect(output.symbols).to eq(symbols)
|
|
|
|
symbols['blubber'] = [" ", "", ".", ".", "o", "o", "O", "O", "0", "0"]
|
|
output.symbols = symbols
|
|
|
|
expect(output.symbols).to eq(symbols)
|
|
end
|
|
|
|
end
|