Created
August 19, 2022 06:29
-
-
Save vinceramcesoliveros/2c040816372c59ebd96d7340529d129a to your computer and use it in GitHub Desktop.
Counter app
This file contains hidden or 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
import 'package:flutter_test/flutter_test.dart'; | |
class Counter { | |
int value = 0; | |
void increment() => value++; | |
void decrement() => value--; | |
} | |
void main() { | |
test("Incremenet value by 1", () { | |
final counter = Counter(); | |
expect(counter.value, 0); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment