Sha256: 75cd4bc54bf24fe6423ce0d214a681c6c8baaadc819e1589dea841a5add28873
Contents?: true
Size: 808 Bytes
Versions: 7
Compression:
Stored size: 808 Bytes
Contents
require File.expand_path('spec_helper', File.dirname(__FILE__)) module Imb describe BarSymbol do subject {BarSymbol.make(ascender_bit, descender_bit)} context 'tracker' do let(:ascender_bit) {0} let(:descender_bit) {0} its(:code) {should eq 0} its(:letter) {should eq 'T'} end context 'descender' do let(:ascender_bit) {0} let(:descender_bit) {1} its(:code) {should eq 1} its(:letter) {should eq 'D'} end context 'ascender' do let(:ascender_bit) {1} let(:descender_bit) {0} its(:code) {should eq 2} its(:letter) {should eq 'A'} end context 'full' do let(:ascender_bit) {1} let(:descender_bit) {1} its(:code) {should eq 3} its(:letter) {should eq 'F'} end end end
Version data entries
7 entries across 7 versions & 2 rubygems