Sha256: 32c4c7ab149b3ba3773e126283e4d6b7e445cec6e58969b0f4ecce6f2a978e25

Contents?: true

Size: 237 Bytes

Versions: 65

Compression:

Stored size: 237 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

RSpec.describe Code::Parser::Number do
  %w[0 1 1.1 123.123 1_000.12_244 0xf0 0o70 0b10].each do |input|
    it "parses #{input}" do
      Code::Parser.parse(input)
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
code-ruby-0.9.1 spec/code/parser/number_spec.rb
code-ruby-0.9.0 spec/code/parser/number_spec.rb
code-ruby-0.8.5 spec/code/parser/number_spec.rb
code-ruby-0.8.4 spec/code/parser/number_spec.rb
code-ruby-0.8.3 spec/code/parser/number_spec.rb
code-ruby-0.8.2 spec/code/parser/number_spec.rb
code-ruby-0.8.1 spec/code/parser/number_spec.rb
code-ruby-0.8.0 spec/code/parser/number_spec.rb
code-ruby-0.7.8 spec/code/parser/number_spec.rb
code-ruby-0.7.7 spec/code/parser/number_spec.rb
code-ruby-0.7.6 spec/code/parser/number_spec.rb
code-ruby-0.7.5 spec/code/parser/number_spec.rb
code-ruby-0.7.4 spec/code/parser/number_spec.rb
code-ruby-0.7.3 spec/code/parser/number_spec.rb
code-ruby-0.7.2 spec/code/parser/number_spec.rb
code-ruby-0.7.1 spec/code/parser/number_spec.rb
code-ruby-0.7.0 spec/code/parser/number_spec.rb
code-ruby-0.6.7 spec/code/parser/number_spec.rb
code-ruby-0.6.6 spec/code/parser/number_spec.rb
code-ruby-0.6.5 spec/code/parser/number_spec.rb