Skip to content

Commit 7bf4e11

Browse files
committed
Add failing tests
1 parent 5c2a0ce commit 7bf4e11

File tree

6 files changed

+128
-0
lines changed

6 files changed

+128
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
elm-stuff
2+
*.js
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"type": "application",
3+
"source-directories": [
4+
"src"
5+
],
6+
"elm-version": "0.19.1",
7+
"dependencies": {
8+
"direct": {
9+
"elm/browser": "1.0.2",
10+
"elm/core": "1.0.5",
11+
"elm/html": "1.0.0",
12+
"elm/http": "2.0.0",
13+
"elm/json": "1.1.3",
14+
"elm/url": "1.0.0",
15+
"lamdera/codecs": "1.0.0",
16+
"lamdera/core": "1.0.0"
17+
},
18+
"indirect": {
19+
"elm/bytes": "1.0.8",
20+
"elm/file": "1.0.5",
21+
"elm/time": "1.0.0",
22+
"elm/virtual-dom": "1.0.3"
23+
}
24+
},
25+
"test-dependencies": {
26+
"direct": {},
27+
"indirect": {}
28+
}
29+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module Main exposing (main)
2+
3+
import Html exposing (Html)
4+
5+
6+
main : Html msg
7+
main =
8+
Html.div []
9+
[ Html.text (a1 3 4 5)
10+
, Html.text (a2 1 2 3 4 5)
11+
]
12+
13+
14+
a1 : Int -> Int -> Int -> String
15+
a1 =
16+
a2 1 2
17+
18+
19+
a2 : Int -> Int -> Int -> Int -> Int -> String
20+
a2 x1 x2 x3 x4 x5 =
21+
if True then
22+
"done"
23+
24+
else
25+
a1 3 4 5
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
elm-stuff
2+
*.js
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"type": "application",
3+
"source-directories": [
4+
"src"
5+
],
6+
"elm-version": "0.19.1",
7+
"dependencies": {
8+
"direct": {
9+
"elm/browser": "1.0.2",
10+
"elm/core": "1.0.5",
11+
"elm/html": "1.0.0",
12+
"elm/http": "2.0.0",
13+
"elm/json": "1.1.3",
14+
"elm/url": "1.0.0",
15+
"lamdera/codecs": "1.0.0",
16+
"lamdera/core": "1.0.0"
17+
},
18+
"indirect": {
19+
"elm/bytes": "1.0.8",
20+
"elm/file": "1.0.5",
21+
"elm/time": "1.0.0",
22+
"elm/virtual-dom": "1.0.3"
23+
}
24+
},
25+
"test-dependencies": {
26+
"direct": {},
27+
"indirect": {}
28+
}
29+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
module Main exposing (main)
2+
3+
import Html exposing (Html)
4+
5+
6+
main : Html msg
7+
main =
8+
Html.div []
9+
[ Html.text (a1 1)
10+
, Html.text (a2 1)
11+
, Html.text (b1 1 1)
12+
, Html.text (b2 1 1)
13+
]
14+
15+
16+
a1 : Int -> String
17+
a1 =
18+
a2
19+
20+
21+
a2 : Int -> String
22+
a2 n =
23+
if n > 0 then
24+
a1 (n - 1)
25+
26+
else
27+
"done"
28+
29+
30+
b1 : Int -> Int -> String
31+
b1 =
32+
b2
33+
34+
35+
b2 : Int -> Int -> String
36+
b2 m n =
37+
if n > 0 then
38+
b1 (m - 1) (n - 1)
39+
40+
else
41+
"done"

0 commit comments

Comments
 (0)