Last active
July 30, 2023 00:04
-
-
Save yarn-rp/dd226a3a1f0f7ef39edf2241e105d98c to your computer and use it in GitHub Desktop.
testing example using consts and MyClass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
test('Value equality', () { | |
const a = MyClass(1); | |
const b = MyClass(1); | |
expect(a, b); // The props is not invoked. | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment