(f: () => any)
| 111 | |
| 112 | describeNightly('NIGHTLY comparison — isSame/is/isEqual are symmetric', () => { |
| 113 | const safe = (f: () => any): string => { |
| 114 | try { |
| 115 | const v = f(); |
| 116 | return v === undefined ? 'undef' : String(v); |
| 117 | } catch (e: any) { |
| 118 | return 'THROW:' + String(e?.message).slice(0, 40); |
| 119 | } |
| 120 | }; |
| 121 | for (const m of ['isSame', 'is', 'isEqual'] as const) { |
| 122 | it(`${m}(a,b) === ${m}(b,a)`, () => { |
| 123 | const asym: string[] = []; |
no test coverage detected