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.72 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.71 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.70 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.69 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.68 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.67 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.66 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.65 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.64 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.63 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.62 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.61 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.60 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.59 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.58 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.57 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.56 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.55 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.54 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart
trackler-2.2.1.53 tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart