testhelper 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/file_line.rb +0 -4
  3. data/lib/testhelper.rb +4 -4
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8efd892a30ad04f80ef1681d579e5aee0d65356e
4
- data.tar.gz: 772e5097cca31f9674743ff83a1f09a295db83d7
3
+ metadata.gz: fb5dd37c61ef0157c150563fb326d1758535ca65
4
+ data.tar.gz: fc8c1f20b9e94173f4e180bca9e7cdc4d0bde465
5
5
  SHA512:
6
- metadata.gz: b0c69f32c0d67c9cc79145c6b23e07e3de8dba4d6a68efba2940ea4e871fd3ba8e08ff16942ee805cecab0622e9b2a0105163888e927ef2ac6230c42737b19b2
7
- data.tar.gz: d262474876e9e83d6aa431f7699eb3309eb52f3a0b39ff84da9f419d9f3ceb6bf3704be15325d9d94da7e987b7fd342cfaeb473d5c031e4c01600044dc6f409c
6
+ metadata.gz: 81bd1d015473242bd7db81e6c23b2b3dfad35f552b83fde6760ec29531d84b3c8c546cab37a8a525eba8828951012f775053b10e474c2cc1d11b148519da1fa3
7
+ data.tar.gz: 540b96d2d28ad783f17058a00806126aad4426496e6e4120c59e5b7cc411f7b88bf7d3d3600e54341d9f4c3bc36ce93e8b7c7ea0be01c3d49065883c39175bb2
data/lib/file_line.rb CHANGED
@@ -8,10 +8,6 @@ module FileLine
8
8
  end
9
9
 
10
10
  module SourceFile
11
- # /Users/colin/work/testhelper/lib/testhelper.rb:55:in `<main>'
12
- # " self.ppt()\n"
13
- # ColintTest
14
- # " mm.ppt()\n"
15
11
  def self.split_file_name_and_no(location_str)
16
12
  source_infos = location_str.split(":")
17
13
  [source_infos[0], source_infos[1].to_i]
data/lib/testhelper.rb CHANGED
@@ -15,7 +15,7 @@ module TestHelper
15
15
  end
16
16
  def ptl(title=nil)
17
17
  location_str = caller()[0]
18
- puts(location_str)
18
+ puts("\n"+location_str)
19
19
  if title == nil
20
20
  title = SourceFile.get_variable_name(location_str, __callee__)
21
21
  end
@@ -31,7 +31,7 @@ module TestHelper
31
31
  end
32
32
  def pptl(title=nil)
33
33
  location_str = caller()[0]
34
- puts(location_str)
34
+ puts("\n"+location_str)
35
35
  if title == nil
36
36
  title = SourceFile.get_variable_name(location_str, __callee__)
37
37
  end
@@ -40,13 +40,13 @@ module TestHelper
40
40
  end
41
41
  def flag_test(title=nil)
42
42
  location_str = caller()[0]
43
- puts(location_str)
43
+ puts("\n"+location_str)
44
44
  if title == nil
45
45
  title = ""
46
46
  else
47
47
  title = title+" : "
48
48
  end
49
- puts(title+"There are codes for test in this place!")
49
+ puts(title+"There are test codes in this place!")
50
50
  end
51
51
  alias puts_with_title pt
52
52
  alias puts_with_title_lineno ptl
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testhelper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Ji