Sha256: 5232f5d3d888222e9e6c7913e29af508533d86c5ca1be0c8e69eed46aee0078c
Contents?: true
Size: 597 Bytes
Versions: 69
Compression:
Stored size: 597 Bytes
Contents
if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("nth_prime.exs", __DIR__) end ExUnit.start() ExUnit.configure(exclude: :pending, trace: true) defmodule NthPrimeTest do use ExUnit.Case # @tag :pending test "first prime" do assert Prime.nth(1) == 2 end @tag :pending test "second prime" do assert Prime.nth(2) == 3 end @tag :pending test "sixth prime" do assert Prime.nth(6) == 13 end @tag :pending test "100th prime" do assert Prime.nth(100) == 541 end @tag :pending test "weird case" do catch_error(Prime.nth(0)) end end
Version data entries
69 entries across 69 versions & 1 rubygems