Commit 0de9e2c 1 parent 2cdd441 commit 0de9e2c Copy full SHA for 0de9e2c
File tree 6 files changed +35
-0
lines changed
collatz-conjecture/source
6 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1
1
module armstrong_numbers ;
2
2
3
+ pure bool isArmstrongNumber(immutable int number)
4
+ {
5
+ // implement this function
6
+ }
7
+
3
8
unittest
4
9
{
5
10
immutable int allTestsEnabled = 0 ;
Original file line number Diff line number Diff line change 1
1
module bob ;
2
2
3
+ pure string hey(immutable string text)
4
+ {
5
+ // implement this function
6
+ }
7
+
3
8
unittest
4
9
{
5
10
immutable int allTestsEnabled = 0 ;
Original file line number Diff line number Diff line change 1
1
module collatz_conjecture ;
2
2
3
+ pure int steps(immutable int number)
4
+ {
5
+ // implement this function
6
+ }
7
+
3
8
unittest
4
9
{
5
10
import std.exception : assertThrown;
Original file line number Diff line number Diff line change 1
1
module darts ;
2
2
3
+ pure int score(immutable float x, immutable float y)
4
+ {
5
+ // implement this function
6
+ }
7
+
3
8
unittest
4
9
{
5
10
immutable int allTestsEnabled = 0 ;
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ import std.array : array;
4
4
import std.algorithm.sorting : sort;
5
5
import std.algorithm.comparison : equal;
6
6
7
+ pure int [dchar ] transform(immutable string [int ] score_map)
8
+ {
9
+ // implement this function
10
+ }
11
+
7
12
unittest
8
13
{
9
14
Original file line number Diff line number Diff line change 1
1
module grains ;
2
2
3
+ pure ulong square(immutable ulong num)
4
+ {
5
+ // implement this function
6
+ }
7
+
8
+ pure ulong total()
9
+ {
10
+ // implement this function
11
+ }
12
+
3
13
unittest
4
14
{
5
15
import std.exception : assertThrown;
You can’t perform that action at this time.
0 commit comments