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.180 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.179 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.178 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.177 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.176 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.175 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.174 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.173 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.172 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.171 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.170 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.169 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.167 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.166 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.165 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.164 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.163 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.162 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.161 tracks/julia/exercises/pangram/runtests.jl
trackler-2.2.1.160 tracks/julia/exercises/pangram/runtests.jl