aboutsummaryrefslogtreecommitdiff
path: root/nth-prime/tests/nth-prime.rs
diff options
context:
space:
mode:
authorFederico Igne <git@federicoigne.com>2020-12-26 17:48:38 +0000
committerFederico Igne <git@federicoigne.com>2021-11-03 18:55:08 +0000
commit02481656966b0a8dfc95cf3c22bcc049660ff7d4 (patch)
tree8e39798fcaf27931d91c2088423fd4e97adcfc2d /nth-prime/tests/nth-prime.rs
parent4e2052c4d792540c2f742b2c2a081b11117ed41d (diff)
downloadexercism-02481656966b0a8dfc95cf3c22bcc049660ff7d4.tar.gz
exercism-02481656966b0a8dfc95cf3c22bcc049660ff7d4.zip
Move Rust exercises in a subdirectory
Diffstat (limited to 'nth-prime/tests/nth-prime.rs')
-rw-r--r--nth-prime/tests/nth-prime.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/nth-prime/tests/nth-prime.rs b/nth-prime/tests/nth-prime.rs
deleted file mode 100644
index b313ff2..0000000
--- a/nth-prime/tests/nth-prime.rs
+++ /dev/null
@@ -1,21 +0,0 @@
1use nth_prime as np;
2
3#[test]
4fn test_first_prime() {
5 assert_eq!(np::nth(0), 2);
6}
7
8#[test]
9fn test_second_prime() {
10 assert_eq!(np::nth(1), 3);
11}
12
13#[test]
14fn test_sixth_prime() {
15 assert_eq!(np::nth(5), 13);
16}
17
18#[test]
19fn test_big_prime() {
20 assert_eq!(np::nth(10_000), 104_743);
21}