File: sci_form_spec.rb

package info (click to toggle)
ruby-ttfunk 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,472 kB
  • sloc: ruby: 7,954; makefile: 7
file content (14 lines) | stat: -rw-r--r-- 273 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require 'spec_helper'
require 'ttfunk/sci_form'

RSpec.describe TTFunk::SciForm do
  let(:sci) { described_class.new(6.123, 5) }

  describe '#to_f' do
    it 'converts to a float' do
      expect(Float(sci)).to eq(612_300)
    end
  end
end