Sha256: 74fc9ba9de868f511458d3bb892f1a953170343306d4f1435ad07111230b0b8b
Contents?: true
Size: 437 Bytes
Versions: 68
Compression:
Stored size: 437 Bytes
Contents
extern crate nth_prime as np; #[test] fn test_first_prime() { assert_eq!(np::nth(1), Some(2)); } #[test] #[ignore] fn test_second_prime() { assert_eq!(np::nth(2), Some(3)); } #[test] #[ignore] fn test_sixth_prime() { assert_eq!(np::nth(6), Some(13)); } #[test] #[ignore] fn test_big_prime() { assert_eq!(np::nth(10001), Some(104743)); } #[test] #[ignore] fn test_zeroth_prime() { assert_eq!(np::nth(0), None); }
Version data entries
68 entries across 68 versions & 1 rubygems