Skip to content

Commit

Permalink
Clean up tests (nim-lang#1)
Browse files Browse the repository at this point in the history
* remove noise/failing tests
* fix ssl, and add converter tests
* tests pass on the c target -- a decent start
  • Loading branch information
saem committed Oct 23, 2021
1 parent aad0ca1 commit bb62740
Show file tree
Hide file tree
Showing 69 changed files with 63 additions and 17,022 deletions.
6 changes: 2 additions & 4 deletions testament/categories.nim
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,6 @@ proc testNimInAction(r: var TResults, cat: Category, options: string) =
"niminaction/Chapter6/WikipediaStats/race_condition",
"niminaction/Chapter6/WikipediaStats/sequential_counts",
"niminaction/Chapter6/WikipediaStats/unguarded_access",
"niminaction/Chapter7/Tweeter/src/tweeter",
"niminaction/Chapter7/Tweeter/src/createDatabase",
"niminaction/Chapter7/Tweeter/tests/database_test",
"niminaction/Chapter8/sdl/sdl_test"
]

Expand Down Expand Up @@ -525,7 +522,8 @@ proc icTests(r: var TResults; testsDir: string, cat: Category, options: string;

# ----------------------------------------------------------------------------

const AdditionalCategories = ["debugger", "examples", "lib", "ic", "navigator"]
# const AdditionalCategories = ["debugger", "examples", "lib", "ic", "navigator"]
const AdditionalCategories = ["debugger", "examples", "lib"]
const MegaTestCat = "megatest"

proc `&.?`(a, b: string): string =
Expand Down
9 changes: 9 additions & 0 deletions tests/converter/tconverter_at_least_one_arg.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
discard """
errormsg: "a converter takes exactly one argument"
file: "tconverter_at_least_one_arg.nim"
line: 7
"""

converter foo(): float = 1.0

echo foo()
9 changes: 9 additions & 0 deletions tests/converter/tconverter_at_most_one_arg.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
discard """
errormsg: "a converter takes exactly one argument"
file: "tconverter_at_most_one_arg.nim"
line: 7
"""

converter foo(a: int, b: string): float = 1.0

echo foo(1, "two")
26 changes: 0 additions & 26 deletions tests/manyloc/keineschweine/README.md

This file was deleted.

21 changes: 0 additions & 21 deletions tests/manyloc/keineschweine/TODO.md

This file was deleted.

10 changes: 0 additions & 10 deletions tests/manyloc/keineschweine/client_settings.json

This file was deleted.

Loading

0 comments on commit bb62740

Please sign in to comment.