Sha256: 9a01f5b7cf79efa2c4dc80f8dfc22651f18db50f9096e5a9e3edf44c54fb3203
Contents?: true
Size: 770 Bytes
Versions: 1
Compression:
Stored size: 770 Bytes
Contents
# frozen_string_literal: true require "test_helper" class LineNumberRangeTest < Minitest::Test def test_from_string_with_empty_string range = GitDiff::LineNumberRange.from_string("") assert_equal 0, range.start assert_equal 1, range.number_of_lines end def test_from_string_with_not_empty_string range = GitDiff::LineNumberRange.from_string("180,7") assert_equal 180, range.start assert_equal 7, range.number_of_lines end def test_from_string_with_start_no_count range = GitDiff::LineNumberRange.from_string("180") assert_equal 180, range.start assert_equal 1, range.number_of_lines end def test_to_s range = GitDiff::LineNumberRange.from_string("180,7") assert_equal "+180,7", range.to_s(:+) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
git_diff-0.4.3 | test/line_number_range_test.rb |