Libraryless. Click here for Pure Java version (5313L/30K).
1 | set flag VarWithNotify_debug. |
2 | set flag varWithNotifyToLiveValue_debug. |
3 | |
4 | svoid test_varWithNotifyToLiveValue() {
|
5 | new VarWithNotify<S> var; |
6 | var lv = varWithNotifyToLiveValue(S, var); |
7 | new Flag flag; |
8 | lv.onChange(flag); |
9 | var.set("hello");
|
10 | assertIsUp(flag); |
11 | assertEqualsVerbose("hello", lv!);
|
12 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034096 |
| Snippet name: | test_varWithNotifyToLiveValue |
| Eternal ID of this version: | #1034096/8 |
| Text MD5: | 178ec6580591fa7a249d55fedc2552cd |
| Transpilation MD5: | d275bdc109c33436fb44523230533fc1 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-21 20:35:08 |
| Source code size: | 312 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 350 / 500 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |