Sha256: 0d9b96c41ee4672c43f3d6a73c5b8068a7a0d532a742964d8b925b13c2da672c
Contents?: true
Size: 429 Bytes
Versions: 104
Compression:
Stored size: 429 Bytes
Contents
extern crate nth_prime as np; #[test] fn test_first_prime() { assert_eq!(np::nth(1), Ok(2)); } #[test] #[ignore] fn test_second_prime() { assert_eq!(np::nth(2), Ok(3)); } #[test] #[ignore] fn test_sixth_prime() { assert_eq!(np::nth(6), Ok(13)); } #[test] #[ignore] fn test_big_prime() { assert_eq!(np::nth(10001), Ok(104743)); } #[test] #[ignore] fn test_zeroth_prime() { assert!(np::nth(0).is_err()); }
Version data entries
104 entries across 104 versions & 1 rubygems