Sha256: ccc806c346dae6a6a48b9d66a6829129ce30d14afc073c622c60f68b7a7531fb

Contents?: true

Size: 1.16 KB

Versions: 300

Compression:

Stored size: 1.16 KB

Contents

using Base.Test

include("pangram.jl")

@testset "empty sentence" begin
    @test !ispangram("")
end
        
@testset "pangram with only lower case" begin
    @test ispangram("the quick brown fox jumps over the lazy dog")
end
        
@testset "missing character 'x'" begin
    @test !ispangram("a quick movement of the enemy will jeopardize five gunboats")
end
        
@testset "another missing character 'x'" begin
    @test !ispangram("the quick brown fish jumps over the lazy dog")
end
        
@testset "pangram with underscores" begin
    @test ispangram("the_quick_brown_fox_jumps_over_the_lazy_dog")
end
        
@testset "pangram with numbers" begin
    @test ispangram("the 1 quick brown fox jumps over the 2 lazy dogs")
end
        
@testset "missing letters replaced by numbers" begin
    @test !ispangram("7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog")
end
        
@testset "pangram with mixed case and punctuation" begin
    @test ispangram("\"Five quacking Zephyrs jolt my wax bed.\"")
end
        
@testset "upper and lower case versions of the same character should not be counted separately" begin
    @test !ispangram("the quick brown fox jumped over the lazy FOX")
end

Version data entries

300 entries across 300 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.138 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.137 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.136 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.135 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.134 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.133 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.132 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.131 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.130 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.129 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.128 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.127 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.126 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.125 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.124 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.123 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.122 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.121 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.120 tracks/julia/exercises/pangram/runtests.jl