Sha256: 819f53ff3f0f3bc6303b61a95a540f9abb490ec837b5e2679d76dcbc75c005ff

Contents?: true

Size: 1.33 KB

Versions: 73

Compression:

Stored size: 1.33 KB

Contents

import "package:test/test.dart";
import "package:difference_of_squares/difference_of_squares.dart";

void main() {
  final squares = new DifferenceOfSquares();

  group("DifferenceOfSquares", () {
    group("#squareOfSums()", () {
      test("square of sum 1", () {
        expect(squares.squareOfSums(1), equals(1));
      });

      test("square of sum 5", () {
        expect(squares.squareOfSums(5), equals(225));
      }, skip: true);

      test("square of sum 100", () {
        expect(squares.squareOfSums(100), equals(25502500));
      }, skip: true);
    });

    group("#sumOfSquares()", () {
      test("sum of squares 1", () {
        expect(squares.sumOfSquares(1), equals(1));
      }, skip: true);

      test("sum of squares 5", () {
        expect(squares.sumOfSquares(5), equals(55));
      }, skip: true);

      test("sum of squares 100", () {
        expect(squares.sumOfSquares(100), equals(338350));
      }, skip: true);
    });

    group("#difference()", () {
      test("difference of squares 1", () {
        expect(squares.difference(1), equals(0));
      }, skip: true);

      test("difference of squares 5", () {
        expect(squares.difference(5), equals(170));
      }, skip: true);

      test("difference of squares 100", () {
        expect(squares.difference(100), equals(25164150));
      }, skip: true);
    });
  });
}

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
trackler-2.2.1.113 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.111 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.110 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.109 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.108 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.107 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.106 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.105 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.104 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.103 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.102 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.101 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.100 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.99 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.98 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.97 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.96 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.95 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.94 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.93 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart