-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cover more math functions of the Elm core module 'Basics'
+ Add steps in the automated tests to cover the functions min, max, abs, modBy, remainderBy, negate, abs, clamp. + Add declarations for said functions to the 'Basics' module and add the to the list of default imports.
- Loading branch information
Showing
46 changed files
with
129 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/180/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
42 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/180/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Basics.min 42 12345678 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/181/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
17 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/181/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Basics.min 42 17 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/185/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
71 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/185/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
min 91 71 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/190/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
12345678 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/190/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Basics.max 42 12345678 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/191/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
57 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/191/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Basics.max 57 51 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/195/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
87 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/195/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
max 87 73 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/400/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/400/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Basics.modBy 13 29 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/402/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[3,0,1,2,3,0,1,2,3,0,1] |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/402/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
List.map (Basics.modBy 4) [ -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5 ] |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/405/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/405/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
modBy 7 13 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/410/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-6 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/410/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Basics.remainderBy 7 -13 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/412/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[-1,0,-3,-2,-1,0,1,2,3,0,1] |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/412/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
List.map (Basics.remainderBy 4) [ -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5 ] |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/415/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-1 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/415/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
remainderBy 5 -21 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/420/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-17 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/420/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Basics.negate 17 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/425/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-23 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/425/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
negate 23 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/430/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
13 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/430/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Basics.abs -13 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/431/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
23 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/431/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Basics.abs 23 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/435/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
27 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/435/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
abs -27 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/440/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/440/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Basics.clamp 3 5 7 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/441/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
13 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/441/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Basics.clamp 11 17 13 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/442/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
19 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/442/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Basics.clamp 19 27 17 |
1 change: 1 addition & 0 deletions
1
...est-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/445/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
37 |
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-core/elm-core-basics/steps/445/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
clamp 31 37 39 |