chore: var and test names not saved

pull/14/head
RuiAlonso 3 years ago
parent 8901bcec70
commit 20c8153363

@ -22,7 +22,7 @@ class Path extends BodyComponent {
/// {@macro path}
/// [Path.straight] creates a straight path for the ball given a [position]
/// for the body, between a [start] and [end] points.
/// It creates two [ChainShape] separated by a [pathWidth]. If [onlyOneWall]
/// It creates two [ChainShape] separated by a [pathWidth]. If [singleWall]
/// is true, just one [ChainShape] is created (like a wall instead of a path)
/// The path could be rotated by [rotation] in degrees.
factory Path.straight({
@ -63,7 +63,7 @@ class Path extends BodyComponent {
/// It creates two [ChainShape] separated by a [pathWidth], like a circular
/// crown. The specified [radius] is for the outer arc, the inner one will
/// have a radius of radius-pathWidth.
/// If [onlyOneWall] is true, just one [ChainShape] is created.
/// If [singleWall] is true, just one [ChainShape] is created.
/// The path could be rotated by [rotation] in degrees.
factory Path.arc({
Color? color,
@ -108,7 +108,7 @@ class Path extends BodyComponent {
/// [position] for the body, with control point specified by [controlPoints].
/// First and last points set the beginning and end of the curve, all the
/// inner points between them set the bezier curve final shape.
/// It creates two [ChainShape] separated by a [pathWidth]. If [onlyOneWall]
/// It creates two [ChainShape] separated by a [pathWidth]. If [singleWall]
/// is true, just one [ChainShape] is created (like a wall instead of a path)
/// The path could be rotated by [rotation] in degrees.
factory Path.bezierCurve({

@ -13,7 +13,7 @@ class Binomial {
void main() {
group('Maths', () {
group('calculateArc', () {
test('it returns by default 100 points as indicated by precision', () {
test('returns by default 100 points as indicated by precision', () {
final points = calculateArc(
center: Vector2.zero(),
radius: 100,
@ -21,7 +21,7 @@ void main() {
);
expect(points.length, 100);
});
test('it returns as many points as indicated by precision', () {
test('returns as many points as indicated by precision', () {
final points = calculateArc(
center: Vector2.zero(),
radius: 100,
@ -55,7 +55,7 @@ void main() {
);
});
test('it returns by default 1000 points as indicated by step', () {
test('returns by default 1000 points as indicated by step', () {
final points = calculateBezierCurve(
controlPoints: [
Vector2(0, 0),
@ -65,7 +65,7 @@ void main() {
expect(points.length, 1000);
});
test('it returns as many points as indicated by step', () {
test('returns as many points as indicated by step', () {
final points = calculateBezierCurve(
controlPoints: [
Vector2(0, 0),

Loading…
Cancel
Save