Sha256: c086c7d35d92e91d0d79b744e42a336e8c0c8ab35508e591d48f68f14e3cdbdc
Contents?: true
Size: 535 Bytes
Versions: 4
Compression:
Stored size: 535 Bytes
Contents
#!/usr/bin/env ruby require 'test/unit' require_relative '../../app/util' class TestAppUtil < Test::Unit::TestCase include Trepan::Util def test_safe_repr string = 'The time has come to talk of many things.' assert_equal(string, safe_repr(string, 50)) assert_equal('The time... things.', safe_repr(string, 17)) assert_equal('"The tim... things."', safe_repr(string.inspect, 17)) string = "'The time has come to talk of many things.'" assert_equal("'The tim... things.'", safe_repr(string, 17)) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
trepanning-0.1.0 | test/unit/test-app-util.rb |
trepanning-0.0.9 | test/unit/test-app-util.rb |
trepanning-0.0.8 | test/unit/test-app-util.rb |
trepanning-0.0.6 | test/unit/test-app-util.rb |