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