This repository was archived by the owner on Apr 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15
15
- ** Memoization** ([ #219 ] ( https://github.com/diffplug/selfie/pull/219 ) implements [ #215 ] ( https://github.com/diffplug/selfie/issues/215 ) )
16
16
- like ` expectSelfie ` , all are available as ` Selfie.memoize ` or as ` suspend fun ` in ` com.diffplug.selfie.coroutines ` .
17
17
``` kotlin
18
- val cachedResult: ByteArray = Selfie .memoizeBinary { dalleJpeg() }.toBePath (" example.jpg" )
18
+ val cachedResult: ByteArray = Selfie .memoizeBinary { dalleJpeg() }.toBeFile (" example.jpg" )
19
19
val cachedResult: String = Selfie .memoize { someString() }.toBe(" what it was earlier" )
20
20
val cachedResult: T = Selfie .memoizeAsJson { anyKotlinxSerializable() }.toBe(""" {"key": "value"}""" )
21
21
val cachedResult: T = Selfie .memoizeBinarySerializable { anyJavaIoSerializable() }.toMatchDisk()
22
22
```
23
+ - ` toBeBase64 ` and ` toBeFile ` for true binary comparison of binary snapshots and facets. ([ #224 ] ( https://github.com/diffplug/selfie/pull/224 ) )
24
+ ### Changed
25
+ - ** BREAKING** reordered a class hierarchy for better binary support. ([ #221 ] ( https://github.com/diffplug/selfie/issues/221 ) )
26
+ - most users won't need to make any changes at all
27
+ - only exception is that ` expectSelfie(byte[]).toBe ` is now a compile error, must do ` toBeBase64 `
23
28
24
29
## [ 1.2.0] - 2024-02-12
25
30
### Added
You can’t perform that action at this time.
0 commit comments