Sha256: 9396d8209e6e464b96ab73fb18c636ae2e0a1c8115db9217c0dd63fc9238f28a
Contents?: true
Size: 604 Bytes
Versions: 5
Compression:
Stored size: 604 Bytes
Contents
require 'test_helper' module Vedeu describe Position do describe '#initialize' do it { skip } end describe '#to_s' do it 'returns an escape sequence when no coordinates are provided' do Position.new.to_s.must_equal("\e[1;1H") end it 'returns an escape sequence when coordinates are provided' do Position.new(12, 19).to_s.must_equal("\e[12;19H") end it 'resets to starting position when a block is given' do Position.new(4, 9).to_s { 'test' }.must_equal("\e[4;9Htest\e[4;9H") end end end # Position end # Vedeu
Version data entries
5 entries across 5 versions & 1 rubygems