We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given the following test. Implement the Person class with:
Person
String
int
isMiddleAge
tenYearsLater
import 'package:test/test.dart'; import 'person.dart'; void main() { test('Person', () { var person1 = Person('Bob', 30); expect(person1.name, 'Bob'); expect(person1.age, 30); expect(person1.isMiddleAge, false); person1.tenYearsLater(); expect(person1.isMiddleAge, true); expect(person1.age, 40); }); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given the following test. Implement the
Person
class with:String
), age (int
).isMiddleAge
(we call people >= 40 yeas old middle age 馃樃 )tenYearsLater
that change the person's age.The text was updated successfully, but these errors were encountered: