tet 1.0.4 → 1.0.5
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.
- checksums.yaml +4 -4
- data/lib/tests.rb +2 -1
- data/lib/tet.rb +4 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc5e7a16c8fec8cf15d0cc6e7b87c242a2231984
|
4
|
+
data.tar.gz: 67a7ca617271c9830b8e07a6bb2e572ae90973a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 934900975f00590e80c56ca2df4daff59449e43d85cda520736557b770f22773ec0d073648dad9f8ac9ad5b958452c28599e6d5d1c9e140a8eb6593c07a92316
|
7
|
+
data.tar.gz: b9ac41a49766a32206d09a08ed11f02921b4d7003fc55cb17db09eae862754dc8b41818af0172ee99de167a214d9eb0c89b31463539a595b8d0bb852df3ffa6c
|
data/lib/tests.rb
CHANGED
data/lib/tet.rb
CHANGED
@@ -61,6 +61,7 @@ module Tet
|
|
61
61
|
@current_group = []
|
62
62
|
@fail_messeges = []
|
63
63
|
@total_asserts = 0
|
64
|
+
@total_fails = 0
|
64
65
|
|
65
66
|
class << self
|
66
67
|
# Store the group name for the duration of calling the given block.
|
@@ -80,7 +81,8 @@ module Tet
|
|
80
81
|
def fail *messeges, letter: 'F'
|
81
82
|
print letter
|
82
83
|
|
83
|
-
@total_asserts +=1
|
84
|
+
@total_asserts += 1
|
85
|
+
@total_fails += 1
|
84
86
|
@fail_messeges << @current_group.join(' : ') << messeges
|
85
87
|
end
|
86
88
|
|
@@ -118,7 +120,7 @@ module Tet
|
|
118
120
|
# Print messages for all the failing assertions.
|
119
121
|
at_exit do
|
120
122
|
puts "\n" unless @total_asserts.zero?
|
121
|
-
puts "#{@
|
123
|
+
puts "#{@total_fails} out of #{@total_asserts} failed"
|
122
124
|
puts indent(@fail_messeges)
|
123
125
|
end
|
124
126
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin Fulton
|
@@ -40,8 +40,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
40
40
|
version: '0'
|
41
41
|
requirements: []
|
42
42
|
rubyforge_project:
|
43
|
-
rubygems_version: 2.
|
43
|
+
rubygems_version: 2.5.1
|
44
44
|
signing_key:
|
45
45
|
specification_version: 4
|
46
46
|
summary: Barely a test framework
|
47
47
|
test_files: []
|
48
|
+
has_rdoc:
|