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