Sha256: b627ef8fff49583d91b206a3799f09fea9e273f969751de92a977e9b3e1a7636

Contents?: true

Size: 624 Bytes

Versions: 1

Compression:

Stored size: 624 Bytes

Contents

require "test_helper"

class LineNumberTest < MiniTest::Unit::TestCase

  def setup
    @line_number = GitDiff::LineNumber.new(0,0)
  end

  def test_increment_left
    @line_number.increment_left
    assert_equal 1, @line_number.left
    assert_equal 0, @line_number.right
  end

  def test_increment_right
    @line_number.increment_right
    assert_equal 0, @line_number.left
    assert_equal 1, @line_number.right
  end

  def test_increment
    @line_number.increment
    assert_equal 1, @line_number.left
    assert_equal 1, @line_number.right
  end

  def test_pair
    assert_equal [0,0], @line_number.pair
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git_diff-0.3.0 test/line_number_test.rb