File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 192
192
you may not use this file except in compliance with the License.
193
193
You may obtain a copy of the License at
194
194
195
- http ://www.apache.org/licenses/LICENSE-2.0
195
+ https ://www.apache.org/licenses/LICENSE-2.0
196
196
197
197
Unless required by applicable law or agreed to in writing, software
198
198
distributed under the License is distributed on an "AS IS" BASIS,
Original file line number Diff line number Diff line change @@ -31,12 +31,12 @@ class HashAlgorithmTest : StringSpec({
31
31
32
32
" Calculating the SHA1 on a file should yield the correct result" {
33
33
// The expected hash was calculated with "sha1sum".
34
- HashAlgorithm .SHA1 .calculate(file) shouldBe " 92170cdc034b2ff819323ff670d3b7266c8bffcd "
34
+ HashAlgorithm .SHA1 .calculate(file) shouldBe " c00ef43045659b53da5d71d49b8cd7e528c9d55b "
35
35
}
36
36
37
37
" Calculating the SHA1-GIT on a file should yield the correct result" {
38
38
// The expected hash was calculated with "git ls-tree HEAD".
39
- HashAlgorithm .SHA1_GIT .calculate(file) shouldBe " 8dada3edaf50dbc082c9a125058f25def75e625a "
39
+ HashAlgorithm .SHA1_GIT .calculate(file) shouldBe " 3f4d322ebd76de0f1bbb9c867e1f818f5202efd3 "
40
40
}
41
41
42
42
" Calculating the SHA1-GIT on a resource should yield the correct result" {
Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ class HashTest : WordSpec({
87
87
" be insensitive to the hash's case" {
88
88
val licenseFile = File ("../LICENSE ")
89
89
90
- Hash .create("92170cdc034b2ff819323ff670d3b7266c8bffcd ").verify(licenseFile) shouldBe true
91
- Hash .create("92170CDC034B2FF819323FF670D3B7266C8BFFCD ").verify(licenseFile) shouldBe true
90
+ Hash .create("c00ef43045659b53da5d71d49b8cd7e528c9d55b ").verify(licenseFile) shouldBe true
91
+ Hash .create("C00EF43045659B53DA5D71D49B8CD7E528C9D55B ").verify(licenseFile) shouldBe true
92
92
}
93
93
}
94
94
})
Original file line number Diff line number Diff line change 20
20
"extension" : " " ,
21
21
"size" : 11357 ,
22
22
"date" : " 2018-06-04" ,
23
- "sha1" : " 92170cdc034b2ff819323ff670d3b7266c8bffcd " ,
23
+ "sha1" : " c00ef43045659b53da5d71d49b8cd7e528c9d55b " ,
24
24
"md5" : " e3fc50a88d0a364313df4b21ef20c29e" ,
25
25
"mime_type" : " text/plain" ,
26
26
"file_type" : " ASCII text" ,
You can’t perform that action at this time.
0 commit comments