tet 1.3.1 → 1.3.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.
- checksums.yaml +4 -4
- data/lib/tet.rb +7 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22f153649eeae65b83a5f5daa0b519653b527387
|
4
|
+
data.tar.gz: 85fa5c694296b14bb73342ae77234606dffbe5b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ce92c797ee5765ba7a3735ea54915d1147b243ff2ae523d8dd401a9ad6b2f8bf42ac232f912e4d23bed162c1c02cab73b8252dd277d2d51d00af7917ce97907
|
7
|
+
data.tar.gz: e0b19766ed486c5a392e865ad7f8355ca26f1228fc5c4bb149e13f7f276ff9ed62786bf7ebc693026bb7a1bc9a6596f28acc070c2ec6fbd2355be30547c011cd
|
data/lib/tet.rb
CHANGED
@@ -92,14 +92,14 @@ module Tet
|
|
92
92
|
|
93
93
|
# Log a passing test.
|
94
94
|
def pass
|
95
|
-
|
95
|
+
print_now PassChar
|
96
96
|
|
97
97
|
@test_count += 1
|
98
98
|
end
|
99
99
|
|
100
100
|
# Log a failing test.
|
101
101
|
def fail *messeges, letter: FailChar
|
102
|
-
|
102
|
+
print_now letter
|
103
103
|
|
104
104
|
@test_count += 1
|
105
105
|
@fail_count += 1
|
@@ -181,6 +181,11 @@ module Tet
|
|
181
181
|
def plural amount, name
|
182
182
|
"#{amount} #{name}#{amount != 1 ? "s" : ""}"
|
183
183
|
end
|
184
|
+
|
185
|
+
def print_now string
|
186
|
+
print string
|
187
|
+
$stdout.flush
|
188
|
+
end
|
184
189
|
end
|
185
190
|
|
186
191
|
at_exit { Tet.render_result }
|