Skip to content

Commit a480395

Browse files
committed
updating top level test description
1 parent 0eb39de commit a480395

File tree

79 files changed

+79
-79
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+79
-79
lines changed

exercises/concept.wip/annalyns-infiltration/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if VERSION < v"1.1"
99
@eval eachrow(A) = (view(A, i, :) for i in axes(A, 1))
1010
end
1111

12-
@testset verbose = true "" begin
12+
@testset verbose = true "tests" begin
1313
@testset "fast attack" begin
1414
@test !can_do_fast_attack(true)
1515
@test can_do_fast_attack(false)

exercises/concept.wip/annalyns-infiltration2/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ include("game.jl")
55
# This exercise isn't about mathematical methods to determine the distribution of a random sample,
66
# therefore we only test that all possible values are returned at least once.
77

8-
@testset verbose = true "" begin
8+
@testset verbose = true "tests" begin
99
@testset "fog" begin
1010
@test Set(is_foggy() for _ in 1:1000) == Set([true, false])
1111
end

exercises/concept.wip/dnd-char/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("dnd-character.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "Randomly generated ability is within range" begin
77
for i in 1:1000
88
@test 3 <= ability() <= 18

exercises/concept.wip/documented-lasagna/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function hasdocstring(s::Symbol)
2222
haskey(meta, Docs.Binding(@__MODULE__, s))
2323
end
2424

25-
@testset verbose = true "" begin
25+
@testset verbose = true "tests" begin
2626
@testset "solution still works" begin
2727
@test preptime(2) == 4
2828
@test preptime(3) == 6

exercises/concept.wip/elyses-analytic-enchantments/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("enchantments.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "Determine if a card is present" begin
77
@test has_card([2, 3, 4, 5], 3)
88
end

exercises/concept.wip/elyses-enchantments/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("enchantments.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "Retrieve a card from a deck" begin
77
@test card([1, 3, 4, 1], 2) == 3
88
@test_throws BoundsError card([1, 3, 4, 1], 0)

exercises/concept.wip/emoji-times/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("emoji-times.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "Addition" begin
77
@test 🕐 + 🕒 == 🕓
88
@test 🕒 + 🕧 == 🕞

exercises/concept.wip/encounters/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("encounters.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "type abstraction" begin
77
@test Dog <: Pet
88
@test Cat <: Pet

exercises/concept.wip/exercism-matrix/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("exercism-matrix.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "construct E" begin
77
@test E == [
88
0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0;

exercises/concept.wip/fibonacci-iterator/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include("fibonacci.jl")
44

55
const fib = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393, 196418, 317811, 514229, 832040, 1346269, 2178309, 3524578, 5702887, 9227465, 14930352, 24157817, 39088169, 63245986, 102334155, 165580141, 267914296, 433494437, 701408733, 1134903170, 1836311903, 2971215073, 4807526976, 7778742049, 12586269025]
66

7-
@testset verbose = true "" begin
7+
@testset verbose = true "tests" begin
88
@testset "Fib is defined" begin
99
@test isdefined(@__MODULE__, :Fib)
1010
@test typeof(Fib(100)) == Fib

exercises/concept.wip/high-score/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("high-score.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "Adding players" begin
77
@testset "Add player with score to empty score dict" begin
88
scores = Dict{String, Int}()

exercises/concept.wip/leap/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("leap.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "year not divisible by 4 in common year" begin
77
@test !isleapyear(2015)
88
end

exercises/concept.wip/name-badge/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("namebadge.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "Full data" begin
77
@test badge(455, "Mary M. Brown", "MARKETING") == "[455] - Mary M. Brown - MARKETING"
88
end

exercises/concept.wip/stage-heralding/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("card-generator.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "Speedrunning 101" begin
77
@test generate_card("»Speedrunning 101« – Sasha Duda Krall (they/them), from GDQU. Start: 13:00, Q&A: 13:20, End: 13:30") == """
88
- Our next speaker is Sasha Duda Krall, from GDQU

exercises/concept.wip/tech-palace/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("welcome.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "1. Create the welcome message" begin
77
@testset "Welcome message for customer with first letter capitalized" begin
88
@test welcome("Formora") == "Welcome to the Tech Palace, FORMORA"

exercises/concept.wip/vehicle-purchase/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("vehicle-purchase.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "Affordability" begin
77
@test canibuy("1974 Ford Pinto", 516, 100) == "Yes! I'm getting a 1974 Ford Pinto."
88
@test canibuy("2014 Bugatti Veyron", 562_500, 5000) == "Damn! No 2014 Bugatti Veyron for me."

exercises/concept/lasagna/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("lasagna.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "preparation time" begin
77
@test preptime(2) == 4
88
@test preptime(3) == 6

exercises/practice/accumulate/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("accumulate.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "multiply" begin
77
@test accumulate(collect(1:10), *) == [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
88
end

exercises/practice/acronym/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("acronym.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "basic" begin
77
@test acronym("Portable Network Graphics") == "PNG"
88
end

exercises/practice/all-your-base/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("all-your-base.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "single bit one to decimal" begin
77
@test all_your_base([1], 2, 10) == [1]
88
end

exercises/practice/allergies/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("allergies.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
#canonical data
77
@testset "testing for single allergies" begin
88
@testset "testing for eggs allergy" begin

exercises/practice/alphametics/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("alphametics.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "puzzle with three letters" begin
77
@test solve("I + BB == ILL") == Dict(
88
'I' => 1,

exercises/practice/anagram/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("anagram.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset verbose = true "Anagram" begin
77
@testset "no matches" begin
88
@test detect_anagrams("diaper", ["hello", "world", "zombies", "pants"]) == String[]

exercises/practice/armstrong-numbers/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("armstrong-numbers.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "armstrong numbers" begin
77
@test isarmstrong(0)
88
@test isarmstrong(5)

exercises/practice/atbash-cipher/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("atbash-cipher.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "encoding from English to atbash" begin
77
@test encode("yes") == "bvh"
88
@test encode("no") == "ml"

exercises/practice/binary-search/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("binary-search.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "default binary search" begin
77
@testset "value in array" begin
88
@test binarysearch([6], 6) == 1:1

exercises/practice/bob/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ response = Dict(
5858
:forceful_question => "Calm down, I know what I'm doing!",
5959
)
6060

61-
@testset verbose = true "" begin
61+
@testset verbose = true "tests" begin
6262
@testset "questions" begin
6363
@testset "$question" for question in questions
6464
@test bob(question) == response[:question]

exercises/practice/circular-buffer/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("circular-buffer.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "reading empty buffer should fail" begin
77
cb = CircularBuffer{Int}(1)
88
@test_throws BoundsError popfirst!(cb)

exercises/practice/clock/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Dates, Test
22

33
include("clock.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "Create a new clock with an initial time" begin
77
# on the hour
88
@test Clock(8, 0) == Clock(8, 0)

exercises/practice/collatz-conjecture/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("collatz-conjecture.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
# canonical data
77
@testset "Canonical data" begin
88
@test collatz_steps(1) == 0

exercises/practice/complex-numbers/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("complex-numbers.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@test ComplexNumber <: Number
77

88
@test ComplexNumber(0, 1)^2 == ComplexNumber(-1, 0)

exercises/practice/custom-set/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("custom-set.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
# canonical data
77
@testset "empty" begin
88
@test isempty(CustomSet([]))

exercises/practice/darts/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("darts.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "Missed target" begin
77
@test score(-9, 9) == 0
88
end

exercises/practice/difference-of-squares/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("difference-of-squares.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "Square the sum of the numbers up to the given number" begin
77
@test square_of_sum(1)::Integer == 1
88
@test square_of_sum(5)::Integer == 225

exercises/practice/dnd-character/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function ischaracter(c)
1212
c.hitpoints == 10 + modifier(c.constitution)
1313
end
1414

15-
@testset verbose = true "" begin
15+
@testset verbose = true "tests" begin
1616
@testset "ability modifier" begin
1717
@test modifier(3) == -4
1818
@test modifier(4) == -3

exercises/practice/etl/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("etl.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "single letter" begin
77
input = Dict(1=>['A'])
88
output = Dict('a'=>1)

exercises/practice/gigasecond/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ samples = Dict(
1111
DateTime("2015-01-24T23:59:59") => DateTime("2046-10-03T01:46:39")
1212
)
1313

14-
@testset verbose = true "" begin
14+
@testset verbose = true "tests" begin
1515
@testset "add gigasecond to $sample[1]" for sample in samples
1616
@test add_gigasecond(sample[1]) == sample[2]
1717
end

exercises/practice/grains/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("grains.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "beginning squares" begin
77
@test on_square(1) == 1
88
@test on_square(2) == 2

exercises/practice/hamming/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("hamming.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "identical strands" begin
77
@test distance("A", "A") == 0
88
@test distance("GGACTGA", "GGACTGA") == 0

exercises/practice/hello-world/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("hello-world.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "Say Hi!" begin
77
@test hello() == "Hello, World!"
88
end

exercises/practice/isbn-verifier/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ macro test_nothrow(expr)
1515
:(@test ( $expr; true ))
1616
end
1717

18-
@testset verbose = true "" begin
18+
@testset verbose = true "tests" begin
1919
@testset "valid ISBNs don't throw" begin
2020
# ISBN number
2121
@test_nothrow ISBN("3-598-21508-8")

exercises/practice/isogram/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("isogram.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "empty string" begin
77
@test isisogram("")
88
end

exercises/practice/killer-sudoku-helper/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("sudoku-util.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "Trivial 1-digit cages" begin
77
for n in 1:9
88
@test combinations_in_cage(n, 1) == [[n]]

exercises/practice/largest-series-product/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
include("largest-series-product.jl")
44

5-
@testset verbose = true "" begin
5+
@testset verbose = true "tests" begin
66
@testset "finds the largest product if span equals length" begin
77
@test largest_product("29", 2) == 18
88
end

0 commit comments

Comments
 (0)