Sha256: 79221655d568dce088dfb41295779479ed7515a586954037a8ae1d4c5468dd04
Contents?: true
Size: 901 Bytes
Versions: 2
Compression:
Stored size: 901 Bytes
Contents
require 'spec_helper' describe Typeright do it 'should do some math +-' do expect(Typeright.s('So, Pi +- 3.1?')).to eq('So, π ± 3.1?') end it 'should do some math ->' do expect(Typeright.s('So, Pi -> 3.1?')).to eq('So, π → 3.1?') end it 'should do some math <-' do expect(Typeright.s('Go back <- this')).to eq('Go back ← this') end it 'should do some math =>' do expect(Typeright.s('So, Pi => 3.1?')).to eq('So, π ⇒ 3.1?') end it 'should do some math <=' do expect(Typeright.s('Go back <= this')).to eq('Go back ⇐ this') end it 'should do some math <<>>' do expect(Typeright.s('Said <<hello>>')).to eq('Said «hello»') end it 'should do some math <<>>' do expect(Typeright.s('Said <<hello>>')).to eq('Said «hello»') end it 'should not touch ``' do expect(Typeright.s('Said `hello`')).to eq('Said `hello`') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typeright-0.0.5 | spec/typeright/calculator_spec.rb |
typeright-0.0.3 | spec/typeright/calculator_spec.rb |