forked from rtfeldman/node-test-runner
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In order to add a test for rtfeldman#336, this commit moves all elm source files from `//src` to `//elm/src`. A unit test has also been added at `//elm/tests/`. The `//elm/elm.json` file is used when generating the source and for running unit tests. There is still `//elm.json` but this is now used only by `//tests/ci.json`.
- Loading branch information
1 parent
877d818
commit b922cd5
Showing
20 changed files
with
93 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
elm-stuff/ |
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,25 @@ | ||
{ | ||
"type": "application", | ||
"source-directories": [ | ||
"src" | ||
], | ||
"elm-version": "0.19.0", | ||
"dependencies": { | ||
"direct": { | ||
"elm/core": "1.0.0", | ||
"elm/json": "1.0.0", | ||
"elm/random": "1.0.0", | ||
"elm/time": "1.0.0" | ||
}, | ||
"indirect": {} | ||
}, | ||
"test-dependencies": { | ||
"direct": { | ||
"elm-explorations/test": "1.2.0" | ||
}, | ||
"indirect": { | ||
"elm/html": "1.0.0", | ||
"elm/virtual-dom": "1.0.2" | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,62 @@ | ||
module Test.Reporter.Console.FormatTest exposing (suite) | ||
|
||
import Test exposing (..) | ||
import Expect | ||
import Test.Reporter.Console.Format exposing (highlightEqual) | ||
|
||
suite : Test | ||
suite = describe "highlightEqual" | ||
[ describe "strings that should *not* be highlighted" | ||
[ describe "very different strings" | ||
[ test "Two strings which are *just* too different for high" <| | ||
\() -> | ||
let | ||
expected = | ||
"Err { context = \"Explanation of what went so wrong\", description = \"An error\" }" | ||
|
||
actual = | ||
"Ok \"Success.\"" | ||
in | ||
highlightEqual expected actual | ||
|> Expect.equal Nothing | ||
, test "A string containing another string interpersed with other characters" <| | ||
\() -> | ||
let | ||
expected = | ||
"OhK3 S-u5c6c4e2s2s 4" | ||
|
||
actual = | ||
"Ok (Success.>" | ||
in | ||
highlightEqual expected actual | ||
|> Expect.equal Nothing | ||
] | ||
, test "strings containing floating point numbers" <| | ||
\() -> | ||
let | ||
expected = | ||
"1.6" | ||
|
||
actual = | ||
"16" | ||
in | ||
highlightEqual expected actual | ||
|> Expect.equal Nothing | ||
] | ||
, describe "strings that should be highlighted" | ||
[ test "similar strings" <| | ||
\() -> | ||
let | ||
expected = | ||
"Err { context = \"Success\" }" | ||
|
||
actual = | ||
"(Ok \"Success\"" | ||
in | ||
highlightEqual expected actual | ||
|> Expect.notEqual Nothing | ||
|
||
] | ||
] | ||
|
||
|
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