Class: DiffToString::TestCase
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- DiffToString::TestCase
- Defined in:
- lib/nandoc/support/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/support/diff-to-string.rb', line 233 def test_context before = <<-B alpha beta gamma tau B after = <<-A alpha gamma zeta tau A puts DiffToString.diff(before.split("\n"), after.split("\n"), :colors=>true, :context=>3) end |