Class: DiffToString::TestCase
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- DiffToString::TestCase
- Defined in:
- lib/nandoc/test/diff-to-string.rb
Instance Method Summary collapse
Instance Method Details
#test_context ⇒ Object
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'lib/nandoc/test/diff-to-string.rb', line 233 def test_context before = " alpha\n beta\n gamma\n tau\n B\n after = <<-A\n alpha\n gamma\n zeta\n tau\n A\n puts DiffToString.diff(before.split(\"\\n\"), after.split(\"\\n\"),\n :colors=>true, :context=>3)\nend\n" |