We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cmp
ProgressString
1 parent 2b13ad0 commit d4a726fCopy full SHA for d4a726f
Project.toml
@@ -11,7 +11,8 @@ UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
11
julia = "0.7, 1"
12
13
[extras]
14
+Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
15
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
16
17
[targets]
-test = ["Test"]
18
+test = ["Test", "Random"]
test/test_progress_record.jl
@@ -0,0 +1,19 @@
1
+module TestProgressRecord
2
+
3
+using ProgressLogging: Progress, ProgressString
4
+using Random: shuffle!
5
+using Test
6
+using UUIDs: uuid4
7
8
+@testset "cmp: ProgressString" begin
9
+ strings = Any[
10
+ let s = string(i)
+ rand(Bool) ? s : ProgressString(Progress(uuid4(), 0.0; name = s))
+ end
+ for i in 10:99
+ ]
+ shuffle!(strings)
+ @test string.(sort!(strings)) == string.(10:99)
+end
19
+end # module
0 commit comments