test/lib/vedeu/output/renderers/escape_sequence_test.rb in vedeu-0.5.4 vs test/lib/vedeu/output/renderers/escape_sequence_test.rb in vedeu-0.5.5
- old
+ new
@@ -26,13 +26,29 @@
end
context 'when there is output' do
let(:output) {
[
- Vedeu::Char.new(value: 't', colour: { background: '#ff0000', foreground: '#ffffff' }),
- Vedeu::Char.new(value: 'e', colour: { background: '#ffff00', foreground: '#000000' }),
- Vedeu::Char.new(value: 's', colour: { background: '#00ff00', foreground: '#000000' }),
- Vedeu::Char.new(value: 't', colour: { background: '#00ffff', foreground: '#000000' }),
+ Vedeu::Views::Char.new(value: 't',
+ colour: {
+ background: '#ff0000',
+ foreground: '#ffffff'
+ }),
+ Vedeu::Views::Char.new(value: 'e',
+ colour: {
+ background: '#ffff00',
+ foreground: '#000000'
+ }),
+ Vedeu::Views::Char.new(value: 's',
+ colour: {
+ background: '#00ff00',
+ foreground: '#000000'
+ }),
+ Vedeu::Views::Char.new(value: 't',
+ colour: {
+ background: '#00ffff',
+ foreground: '#000000'
+ }),
]
}
it { subject.must_equal(
"\\e[38;2;255;255;255m\\e[48;2;255;0;0mt\n" \