Sha256: 0491528752ce3e4ec383b1b8522532ee37067db6372e7deefec98bb354c879cc

Contents?: true

Size: 385 Bytes

Versions: 5

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

class TestSemVer < Test::Unit::TestCase
  include DeterministicHelper

  assert_methods_are_deterministic(FFaker::SemVer, :next)

  def setup
    @tester = FFaker::SemVer
  end

  def test_next
    assert_includes(%w[0.0.1 0.1.0 1.0.0], @tester.next)
    assert_includes(%w[2.0.0 1.3.0 1.2.4], @tester.next('1.2.3'))
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ffaker-2.23.0 test/test_sem_ver.rb
ffaker-2.22.0 test/test_sem_ver.rb
ffaker-2.21.0 test/test_sem_ver.rb
ffaker-2.20.0 test/test_sem_ver.rb
ffaker-2.19.0 test/test_sem_ver.rb